CJ7
CJ7

Reputation: 23275

C#: data-binding objects such as DataGrid

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

Answers (1)

Denis Palnitsky
Denis Palnitsky

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

Related Questions