VGridControlBase.FocusFirst() Method
Moves focus to the first visible row.
Namespace: DevExpress.XtraVerticalGrid
Assembly: DevExpress.XtraVerticalGrid.v24.2.dll
Declaration
Remarks
Use the FocusFirst method to focus the first visible row within the vertical grid. If the first row is invisible on screen, calling the FocusFirst method scrolls the grid to make the row visible.
Calling the FocusFirst method will have no effect in the cases listed below:
- the first visible row is focused;
- the first 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 first visible row use the VGridControlBase.GetFirstVisible method.
For more information, see Focus and Scroll Rows.
See Also