Back to Devexpress

TreeList.GetFocusedRow() Method

windowsforms-devexpress-dot-xtratreelist-dot-treelist-186a9690.md

latest3.1 KB
Original Source

TreeList.GetFocusedRow() Method

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

Namespace : DevExpress.XtraTreeList

Assembly : DevExpress.XtraTreeList.v25.2.dll

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

Declaration

csharp
public object GetFocusedRow()
vb
Public Function GetFocusedRow As Object

Returns

TypeDescription
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:

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

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GetFocusedRow() 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.

xaf-win-gantt-control/CS/XPO/GanttSolutionXPO/GanttSolutionXPO.Win/Editors/CustomGanttEditor.cs#L25

csharp
object[] result = new object[1];
result[0] = control.GetFocusedRow();
return result;

See Also

GetRow(Int32)

GetFocusedDataRow()

GetDataRow(Int32)

TreeList Class

TreeList Members

DevExpress.XtraTreeList Namespace