ArrayList - DataGrid binding

  • Thread starter Thread starter Jordan
  • Start date Start date
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
 
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.
 
Back
Top