Skip to main content
A newer version of this page is available. .

DataViewBase.FocusedRowHandle Property

Gets or sets the focused row’s handle. This is a dependency property.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v18.2.Core.dll

Declaration

[Browsable(false)]
public int FocusedRowHandle { get; set; }

Property Value

Type Description
Int32

An integer value that specifies the focused row’s handle.

Remarks

The focused row isn’t displayed if the DataViewBase.NavigationStyle property is set to GridViewNavigationStyle.None. To specify the focused row, use the FocusedRowHandle property or the DataViewBase.MoveFocusedRow method. If the specified row isn’t visible onscreen, a View is automatically scrolled to make the focused row visible.

After the focused row has been changed, the DataViewBase.FocusedRowChanged event is raised.

To learn more, see Moving Row Focus.

The following code snippets (auto-collected from DevExpress Examples) contain references to the FocusedRowHandle property.

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