TreeList.GetFocusedDataRow() Method

Returns the focused Tree List row as a DataRow object.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v20.1.dll


public DataRow GetFocusedDataRow()
Public Function GetFocusedDataRow As DataRow


Type Description

A DataRow object that represents the currently focused Tree List row.


The GetFocusedDataRow 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