TreeListNode.Id Property

Gets the index of the corresponding record within the associated data source.

Namespace: DevExpress.XtraTreeList.Nodes

Assembly: DevExpress.XtraTreeList.v21.2.dll


public int Id { get; }

Property Value

Type Description

An integer value representing the zero-based index of the corresponding data source record.


The TreeList control synchronizes its displayed data with its data source if the object it is bound to supports the IBindingList interface. This interface provides a ListChanged event which allows you to respond to data source changes. The changed data source record is identified by its index in this event. The Id property of nodes represents namely this index and thus is used to synchronize data source changes with nodes.

Nodes can be obtained by their IDs via the TreeList.FindNodeByID method call.

See Also