Skip to main content

TreeList.GetDataRecordByNode(TreeListNode) Method

Returns a data row associated with the node specified.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v24.1.dll

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

Declaration

public virtual object GetDataRecordByNode(
    TreeListNode node
)

Parameters

Name Type Description
node TreeListNode

The TreeListNode object representing the node whose associated data row is to be obtained.

Returns

Type Description
Object

A data row associated with the node specified. null (Nothing in Visual Basic) if the node is not found.

Remarks

If the Tree List is bound to a data source, the GetDataRecordByNode method returns the data row associated with the specified node. When working in unbound mode, an array of cell values that reside within the specified node is returned.

The following code snippets (auto-collected from DevExpress Examples) contain references to the GetDataRecordByNode(TreeListNode) 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