Focusing Cells
Moving the cell focus in code may be useful when you need to facilitate end-user input. This enables you to move focus to the desired cells automatically, so end-users don't need to navigate themselves. This topic describes the basics of focus movement between cells.
#Availability
Data cells can be focused if the DataViewBase.NavigationStyle property is set to GridViewNavigationStyle.Cell.
#Focusing Cells
The focused cell is a data cell with which an end-user can interact using the keyboard. For instance, an end-user can press F2 or ENTER to activate the cell's in-place editor.
The focused cell is identified by the focused row and focused column. The focused row is specified by the DataViewBase.FocusedRowHandle property. The focused column is specified by the GridViewBase.FocusedColumn property.
You can use the following methods to move cell focus within a focused row.
Method | Description |
---|---|
Data |
Focuses the next cell after the focused cell. |
Data |
Focuses the previous cell before the focused cell. |