TreeList.GetDataRow(Int32) Method

Returns a Tree List row as a DataRow object.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v20.1.dll


public virtual DataRow GetDataRow(
    int nodeId
Public Overridable Function GetDataRow(
    nodeId As Integer
) As DataRow


Name Type Description
nodeId Int32

An Int32 value assigned to the processed node's TreeListNode.Id property.


Type Description

A DataRow object that represents a Tree List row.


The GetDataRow method returns the following:

  • null, if the Tree List data source is a custom collection of objects;
  • a System.Data.DataRow object, if the data source is a System.Data.DataTable or System.Data.DataView object. DataRow objects allow you to access and modify rows and row values.

To retrieve objects that correspond to Tree List rows regardless of the data source type, call the TreeList.GetRow method instead.

See Also