ComponentOne DataGrid for WPF and Silverlight
DataGrid for WPF and Silverlight Overview / DataGrid Features / Keyboard and Mouse Navigation / Keyboard Navigation
In This Topic
    Keyboard Navigation
    In This Topic

    The following table lists several keyboard shortcuts that can be used to navigate and manipulate the grid at run time. Note that on Apple computers, end users should use the Command (or Apple) key in place of the CTRL key:

     

    Key Combination Description
    DOWN Arrow Moves the focus to the cell directly below the current cell. If the focus is in the last row, pressing the DOWN ARROW does nothing.
    UP Arrow Moves the focus to the cell directly above the current cell. If the focus is in the first row, pressing the UP ARROW does nothing.
    LEFT Arrow Moves the focus to the previous cell in the row. If the focus is in the first cell in the row, pressing the LEFT ARROW does nothing.
    RIGHT Arrow Moves the focus to the next cell in the row. If the focus is in the last cell in the row, pressing the RIGHT ARROW does nothing.
    HOME Moves the focus to the first cell in the current row.
    END Moves the focus to the last cell in the current row.
    PAGE DOWN Scrolls the control downward by the number of rows that are displayed. Moves the focus to the last displayed row without changing columns. If the last row is only partially displayed, scrolls the grid to fully display the last row.
    PAGE UP Scrolls the control upward by the number of rows that are displayed. Moves focus to the first displayed row without changing columns. If the first row is only partially displayed, scrolls the grid to fully display the first row.
    TAB

    If the current cell is in edit mode, moves the focus to the next editable cell in the current row. If the focus is already in the last cell of the row, commits any changes that were made and moves the focus to the first editable cell in the next row. If the focus is in the last cell in the control, moves the focus to the next control in the tab order of the parent container.

    If the current cell is not in edit mode, moves the focus to the next control in the tab order of the parent container.
    SHIFT+TAB

    If the current cell is in edit mode, moves the focus to the previous editable cell in the current row. If the focus is already in the first cell of the row, commits any changes that were made and moves the focus to the last cell in the previous row. If the focus is in the first cell in the control, moves the focus to the previous control in the tab order of the parent container.

    If the current cell is not in edit mode, moves the focus to the previous control in the tab order of the parent container.
    CTRL + DOWN ARROW Moves the focus to the last cell in the current column.
    CTRL + UP ARROW Moves the focust to the last cell in the current column.
    CTRL + RIGHT ARROW Moves the focus to the last cell in the current row.
    CTRL + LEFT ARROW Moves the focus to the first cell in the current row.
    CTRL + HOME Moves the focus to the first cell in the control.
    CTRL + PAGE DOWN Same as PAGE DOWN.
    CTRL + PAGE UP Same as PAGE UP.
    ENTER Shifts the focus to the next row.
    F2 Enter/exit edit mode on a selected cell (if the grid and column's IsReadOnly properties are False).
    ESC Cancel editing of a cell or new row.
    DEL Delete selected row.
    INSERT Scrolls to the new row and begins editing it.