Back to Devexpress

DataViewBase.MoveFocusedRow(Int32) Method

wpf-devexpress-dot-xpf-dot-grid-dot-dataviewbase-dot-movefocusedrow-x28-system-dot-int32-x29.md

latest2.0 KB
Original Source

DataViewBase.MoveFocusedRow(Int32) Method

Moves focus to the specified row.

Namespace : DevExpress.Xpf.Grid

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

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public void MoveFocusedRow(
    int visibleIndex
)
vb
Public Sub MoveFocusedRow(
    visibleIndex As Integer
)

Parameters

NameTypeDescription
visibleIndexInt32

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.

See Also

Identify Rows and Cards

Obtain Row Handles

DataViewBase Class

DataViewBase Members

DevExpress.Xpf.Grid Namespace