TreeList.FindNodeByID(Int32) Method
Returns the node specified by its identifier.
Namespace: DevExpress.XtraTreeList
Assembly: DevExpress.XtraTreeList.v24.2.dll
NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.TreeList
#Declaration
public TreeListNode FindNodeByID(
int nodeID
)
#Parameters
Name | Type | Description |
---|---|---|
node |
Int32 | An integer value specifying the identifier of the requested node. |
#Returns
Type | Description |
---|---|
Tree |
A Tree |
#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.