dotnetmonitor.com |
|
||||||||||||
| One of the most
important parts when databinding is for the list to support change
notifications. This is only important if you want the DataGridView to be
updated when the list changes such as add, updates and deletes. Only
datasources that implement the IBindingList support change notification. Lists
such as arrays or collections do not support change notification by default.
The BindingSource component is the preferred data source because it can bind to a wide variety of data sources and can resolve many data binding issues automatically. Typically, you will bind to a BindingSource component and bind the BindingSource component to another data source or populate it with business objects. The BindingList<T> class can also be used to create a custom list based upon a type. |
||||||||||||
|
||||||||||||