1

How can I databind a gridview to an arraylist in .NET?

I am using .NET 3.5 and Visual Studio 2008.

2 Answers 2

1

In place of arraylist use generic class BindingList. It will allow you to bind this list in two direcions to DataGridView. So your change in BindingList will be reflected in DGV and vice versa.

Here you have more information about BindingList class: http://msdn.microsoft.com/en-us/library/ms132679.aspx

Sign up to request clarification or add additional context in comments.

Comments

0

Easiest thing to do would be to build an alternate collection; try a List<> or a BindingList<>.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.