Skip to main content
A newer version of this page is available. .

TreeListNode.Id Property

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

Namespace: DevExpress.XtraTreeList.Nodes

Assembly: DevExpress.XtraTreeList.v19.1.dll

Declaration

[Browsable(false)]
public int Id { get; }

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.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Id property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also