With built-in keyboard support, FlexGrid lets you perform the basic navigation operations such as moving the focus, entering or exiting the edit mode etc. with a perfect ease just by using keys. Below tables list the supported keys and their corresponding operations in non-edit as well as in edit mode of the cell.
Key Sequence | Key Action |
---|---|
↑
← →
↓
|
Moves focus to the adjacent cell in direction indicated by the arrow key. |
Shift + Arrow
|
Selects adjacent cells in direction indicated by the arrow key. |
F2
|
Grid is editable: Toggles the cell to edit mode. If a value exists in the cell, it gets selected. Else, the grid simply displays a cursor in the cell. Grid is not editable: No action. |
Enter
|
Grid is editable: Toggles the cell to edit mode. If a value exists in the cell, it gets selected. Else, the grid simply displays a cursor in the cell. Grid is not editable: Moves the selection down to the next visible row. You can also change default behavior of Enter key press by using the KeyActionEnter property. |
Home
|
Moves focus to the first cell of row. |
End
|
Moves focus to the last cell of row. |
Ctrl + Home
|
Moves focus to the first cell of column. |
Ctrl + End
|
Moves focus to the last cell of column. |
Tab
|
By default, grid ignores the Tab key press and lets it cycle through the controls on the form. However, you can define the action to be performed on Tab key press by using the KeyActionTab property. |
Ctrl + C
Ctrl + X
Ctrl + V
|
Performs usual clipboard operations, that is, copy(Ctrl+C), cut(Ctrl+X) and paste(Ctrl+V), when AutoClipboard property is set to true (Default value is false). |
Key Sequence | Key Action |
---|---|
↑
↓
|
Moves focus to the adjacent cell in the direction indicated by arrow key. |
← →
|
Moves cursor by one character in the direction indicated by arrow key. When cursor is on the first or last character, moves focus to the adjacent cell in the direction of arrow key. |
Enter
|
Toggles the cell to non-edit mode and moves focus to the cell below. You can also change default behavior of Enter key press by using the KeyActionEnter property. |
Esc
|
Cancels editing and exits the edit mode. |
Tab
|
By default, grid ignores the Tab key press and lets it cycle through the controls on the form. However, you can define the action to be performed on Tab key press by using the KeyActionTab property. |