gp-grid-logo
Examples

Selection

Cell and range selection examples

Selection

gp-grid supports cell selection with range and multi-select capabilities.

Single Cell Selection

Click any cell to select it. The active cell is highlighted with a distinct border.

Range Selection

Click and drag to select a range of cells:

  1. Click a cell to start
  2. Drag to extend the selection
  3. Release to complete the range

Or use keyboard:

  1. Click a cell
  2. Hold Shift
  3. Click another cell to select the range

Keyboard Navigation

KeyAction
Arrow keysMove active cell
Shift + ArrowExtend selection
TabMove to next cell
Shift + TabMove to previous cell
EnterMove down (or start editing)
HomeGo to first cell in row
EndGo to last cell in row
Ctrl + HomeGo to first cell
Ctrl + EndGo to last cell

Selection Styling

Selected cells receive distinct styling:

  • Active cell: Bold border
  • Selected range: Highlighted background

The styling automatically adapts to dark mode when darkMode={true}.

On this page