Reputation: 23275
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?
Upvotes: 0
Views: 264
Reputation: 18387
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).
Upvotes: 1