Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TreeList.GetFocusedRow() Method

Returns an Object in the bound data source that contains data for the focused node.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v24.2.dll

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

#Declaration

public object GetFocusedRow()

#Returns

Type Description
Object

An object that specifies a row of data in a data source.

#Remarks

Use the following methods to get an object that contains data for a specific node:

  • GetRow(Int32) — Returns an Object in the bound data source that contains data for the specified node.

    To get the focused node’s data row, use the GetFocusedRow() method.

  • GetDataRow(Int32) — Returns a DataRow in the bound DataTable that contains data for the specified node.

    To get the focused node’s DataRow, use the GetFocusedDataRow() method.

    Note

    If the bound data source is a custom collection, these methods return null (Nothing in VB).

To specify the node in the method’s parameter, use the node’s Id property value.

See Also