By default, the user can navigate the grid with the arrow keys, the ENTER key, the TAB key, the Page Up and Page DOwn keys, and the HOME and END keys.
Up/Down Arrows |
These keys move the current cell to adjacent rows. |
Left/Right Arrows |
If the AllowArrows property is True (the default), these keys move the current cell to adjacent columns. |
|
If the AllowArrows property is False, then these keys move focus from control to control and cannot be used to move between cells. |
ENTER |
By default, the ENTER key behaves in the same manner as the RIGHT ARROW key, by moving the current cell from left to right along the adjacent columns. The behavior for the ENTER key can be modified by using the DirectionAfterEnter property. |
TAB |
If the TabAction property is 0 - Control Navigation (the default), the TAB key moves focus to the next control on the form, as determined by the tab order. |
|
If the TabAction property is ColumnNavigation or GridNavigation, the TAB key moves the current cell to the next column, while SHIFT+TAB moves to the previous column. The differences between column and grid navigation are discussed in the next section. |
PAgE Up, PAgE DOWn |
These keys scroll the grid up or down an entire page at a time. Unlike the vertical scroll bar, the PAgE Up and PAgE DOWn keys change the current row by the number of visible rows in the grid's display. When paging up, the current row becomes the first row in the display area. When paging down, the current row becomes the last row in the display area, including the AddNew row. The current column does not change. |
HOME, END |
These keys move the current cell to the first or last column. If necessary, the grid will scroll horizontally so that the current cell becomes visible. The current row does not change. If the current cell is being edited, HOME and END move the insertion point to the beginning or end of the cell's text. |
Send comments about this topic to ComponentOne. Copyright © ComponentOne LLC. All rights reserved. |