Back to Devexpress

RepositoryItemLookUpEdit.ListChanged Event

windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitemlookupedit-77743b40.md

latest2.9 KB
Original Source

RepositoryItemLookUpEdit.ListChanged Event

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

Namespace : DevExpress.XtraEditors.Repository

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 and removing records from the editor’s data source specified by the RepositoryItemLookUpEditBase.DataSource property. The editor subscribes to the ListChanged event and updates itself as needed.

The editor’s LookUpEdit.ListChanged event is equivalent to the current event.

See Also

RepositoryItemLookUpEdit Class

RepositoryItemLookUpEdit Members

DevExpress.XtraEditors.Repository Namespace