Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

BindingList<T>::ListChanged Event

Occurs when the list or an item in the list changes.

Namespace:  System.ComponentModel
Assembly:  System (in System.dll)

public:
virtual   event ListChangedEventHandler^ ListChanged {
	void add (ListChangedEventHandler^ value);
	void remove (ListChangedEventHandler^ value);
}

Implements

IBindingList::ListChanged

ListChanged notifications for item value changes are only raised if the list item type implements the INotifyPropertyChanged interface.

For more information about handling events, see 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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

XNA Framework

Supported in: 3.0, 2.0, 1.0
Show:
© 2015 Microsoft