Skip to main content

TreeList.FindNodeByID(Int32) Method

Returns the node specified by its identifier.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v22.2.dll

NuGet Package: DevExpress.Win.TreeList


public TreeListNode FindNodeByID(
    int nodeID


Name Type Description
nodeID Int32

An integer value specifying the identifier of the requested node.


Type Description

A TreeListNode object representing the node with the specified identifier. null (Nothing in Visual Basic) if there is no node with the specified identifier.


Each node within the TreeList control has a unique integer identifier. It is returned via the TreeListNode.Id property of a node. Node identifiers are indexes of corresponding data source records and are used to synchronize data source and nodes changes. Use the FindNodeByID method to obtain the node by its identifier.

You can also obtain nodes by their key field values. Use the TreeList.FindNodeByKeyID method for this purpose.

See Also