Spark DataGrid control keyboard shortcuts

A DataGrid control displays a grid of rows and columns. Depending on the available screen space, all rows and columns might not be currently visible. Paging down through the data items displayed by a 10-row control shows items 0-9, 10-19, 20-29, and so on.

The user clicks individual data items to select them. If the DataGrid is configured for multiple selection, holds down Shift key while clicking to select multiple items.

The control has the following default keyboard navigation features:

Key

Action

Up Arrow

Moves selection up one item. Hold down the Control key (Windows) or Command key (OSX) to only move the caret, but not change selection.

Down Arrow

Moves selection down one item. Hold down the Control key (Windows) or Command key (OSX) to only move the caret, but not change selection.

Left Arrow

In cell selection mode, moves selection one column to the left. Hold down the Control key (Windows) or Command key (OSX) to only move the caret, but not change the selected cell.

Right Arrow

In cell selection mode, moves selection one column to the right. Hold down the Control key (Windows) or Command key (OSX) to only move the caret, but not change the selected cell.

Page Up

Moves selection up one page.

Page Down

Moves selection down one page.

Home

Moves selection to the top of the grid.

End

Moves selection to the bottom of the grid.

Control key (Windows) and Command key (OSX) and a navigation key

Allows for multiple, noncontiguous selection and deselection in multiple selection mode. Works with Arrow keys, Page Up key, Page Down key, mouse click, and mouse drag.

Shift key and a navigation key

Allows for contiguous selection in multiple selection mode. Works with keypresses, click selection, and drag selection. Works with Arrow keys, Page Up key, Page Down key, mouse click, and mouse drag.

Control-A

Select all grid items

Space

Adds the caret to the selection list

Control-Space

Toggle the selection of the caret.

Shift-Space

Extends selection from the anchor to the caret