IBindingList Demo

This sample demonstrates the implementation of the IBindingList for an array list that is used internally, and it also shows how to bind this list to a Grid Grouping control.

Benefits

The benefits of using IBindingList include support for change notifications when the list is modified. It does have a ListChanged event, which will be fired when any data changes. If the collection supports changes, it should also support firing a ListChanged event when the collection changes. To indicate that, it should return true from the SupportsChangeNotification property. Hence, when items are added or removed from the collection, the Grid Grouping control will be notified of these changes and will update itself automatically.

This sample also implements the INotifiedPropertyChanged interface used to make the collection aware of any property changes.

IBindingList screenshot

Interactive Features:

Follow these steps to experience the benefits of the ListChanged event.