Skip to main content

TreeList.FindNodeByID(Int32) Method

Returns the node specified by its identifier.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v24.1.dll

NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.TreeList

Declaration

public TreeListNode FindNodeByID(
    int nodeID
)

Parameters

Name Type Description
nodeID Int32

An integer value specifying the identifier of the requested node.

Returns

Type Description
TreeListNode

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

Remarks

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