Skip to main content

LookUpEdit.ListChanged Event

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

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v23.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