views:

27

answers:

1

C#: if you bind a DataGrid object to a List object and set the columns to show properties of List's objects, will the DataGrid update when the data-object does?

Is it advisable to data-bind DataGrids? Isn't it better for the programmer to control this process themselves?

+1  A: 

No, DataGrid will not update when the data-object does. If you want such behavior you need to implement IBindingList or use BindingList class (or DataTable).

Orsol
What method call needs to happen for the DataGrid to update?
Craig Johnston
ResetBindings()
Orsol