Back to Devexpress

LookUpEdit.ListChanged Event

windowsforms-devexpress-dot-xtraeditors-dot-lookupedit-42c6080e.md

latest3.1 KB
Original Source

LookUpEdit.ListChanged Event

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

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DXCategory("Events")]
public event ListChangedEventHandler ListChanged
vb
<DXCategory("Events")>
Public Event ListChanged As ListChangedEventHandler

Event Data

The ListChanged event's data class is ListChangedEventArgs. The following properties provide information specific to this event:

PropertyDescription
ListChangedTypeGets the type of change.
NewIndexGets the index of the item affected by the change.
OldIndexGets the old index of an item that has been moved.
PropertyDescriptorGets 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

LookUpEdit Class

LookUpEdit Members

DevExpress.XtraEditors Namespace