ListBoxItemCollection.ListChanged Event
Occurs after the item collection has been changed.
Namespace: DevExpress.XtraEditors.Controls
Assembly: DevExpress.XtraEditors.v18.2.dll
Declaration
Event Data
The ListChanged event's data class is ListChangedEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
ListChangedType | Gets the type of change. |
NewIndex | Gets the index of the item affected by the change. |
OldIndex | Gets the old index of an item that has been moved. |
PropertyDescriptor | Gets the PropertyDescriptor that was added, changed, or deleted. |
Remarks
Changing the list box control item collection as a result of adding, inserting and removing items raises the ListChanged event. The list box control subscribes the ListChanged event and updates itself as needed.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ListChanged event.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.