Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

LookUpEdit.ListChanged Event

Occurs after a record(s) in the RepositoryItemLookUpEditBase.DataSource has been changed.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DXCategory("Events")]
public event ListChangedEventHandler ListChanged

#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

The ListChanged event is raised as a result of adding, inserting or removing records from the editor’s data source specified by the RepositoryItemLookUpEditBase.DataSource property. The editor subscribes the ListChanged event and updates itself as needed.

The editor’s ListChanged event is equivalent to the RepositoryItemLookUpEdit.ListChanged event available via the BaseEdit.Properties object, i.e. adding/removing an event handler for the current event actually affects the RepositoryItemLookUpEdit.ListChanged event.

See Also