BindingList<T>::ListChanged Event
.NET Framework (current version)
Occurs when the list or an item in the list changes.
Assembly: System (in System.dll)
public: event ListChangedEventHandler^ ListChanged { virtual void add(ListChangedEventHandler^ value) sealed; virtual void remove(ListChangedEventHandler^ value) sealed; }
Implements
IBindingList::ListChangedListChanged notifications for item value changes are only raised if the list item type implements the INotifyPropertyChanged interface.
For more information about handling events, see NIB: Consuming Events.
The following code example demonstrates how handle the ListChanged event. For the complete example, see the BindingList<T> class overview topic.
void listOfParts_ListChanged(object sender, ListChangedEventArgs e) { MessageBox.Show(e.ListChangedType.ToString()); }
.NET Framework
Available since 2.0
Available since 2.0
Show: