Skip to main content

VGridControlBase.FocusPrev() Method

Moves row focus to the previous visible row.

Namespace: DevExpress.XtraVerticalGrid

Assembly: DevExpress.XtraVerticalGrid.v24.1.dll

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

Declaration

public void FocusPrev()

Remarks

The FocusPrev method moves row focus from the currently focused row to the previous visible row.

Calling the FocusPrev method will have no effect in the cases listed below:

  • the previous visible row is focused;
  • the previous visible row cannot be focused (its VGridOptionsRow.AllowFocus option is disabled).

The currently focused row can be identified using the grid’s VGridControlBase.FocusedRow property. To get the previous visible row use the VGridControlBase.GetPrevVisible method.

For more information, see Focus and Scroll Rows.

See Also