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

TreeList.FindNodeByID(Int32) Method

Returns the node specified by its identifier.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v19.2.dll

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.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the FindNodeByID(Int32) method.

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