ArrayList - DataGrid binding

J

Jordan

After binding an arraylist to a datagrid, is it possible to allow the
user to add and delete new rows on the datagrid just as they would if
a datatable were bound to the control? I have tried to implement some
interfaces but nothing has been successful so far, thanks in advance,
Jordan
 
N

Nicholas Paldino [.NET/C# MVP]

Jordan,

Unfortunately, no. You will have to bind the data grid to a class that
implements IBindingList. This is what will allow you to add new rows/delete
rows, and see changes to items in the list. You will have to wrap your
ArrayList with something that implements this.

Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top