Skip to main content

DataViewBase.MoveFocusedRow(Int32) Method

Moves focus to the specified row.

Namespace: DevExpress.Xpf.Grid

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

NuGet Package: DevExpress.Wpf.Grid.Core

Declaration

public void MoveFocusedRow(
    int visibleIndex
)

Parameters

Name Type Description
visibleIndex Int32

An integer value that specifies the row’s position within a View.

Remarks

To use the MoveFocusedRow method, the DataViewBase.NavigationStyle property should be set to GridViewNavigationStyle.Row or GridViewNavigationStyle.Cell.

Use the GridControl.GetRowVisibleIndexByHandle method to obtain a row’s visible index by its handle.

Refer to the following help topic for more information: Focus and Navigation.

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

See Also