TreeListNode.Id Property

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

Namespace: DevExpress.XtraTreeList.Nodes

Assembly: DevExpress.XtraTreeList.v20.1.dll

Declaration

[Browsable(false)]
public int Id { get; }
<Browsable(False)>
Public ReadOnly Property Id As Integer

Property Value

Type Description
Int32

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

Remarks

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