Skip to content

Data Grid — Selection

Data Display

Single or multiple row selection with checkboxes, reported through selectionChange .

Examples

Single and multiple selection

selectionMode adds a checkbox (or radio) column; selectionChange emits the selected rows. Set rowId so the selection survives data refreshes. The header checkbox selects the current page.

No filters active
Ana Popescu Platform
Mihai Ionescu Design
Elena Dumitru Platform
Andrei Stan Data
Ioana Marin Design

Selected (0): nobody

Controlled selection

Bind [(selectedKeys)] to the rowId values to read, set or restore the selection from your own state; [] clears it. clearSelection() on the grid does the same from code.

No filters active
Ana Popescu Platform
Mihai Ionescu Design
Elena Dumitru Platform
Andrei Stan Data
Ioana Marin Design

Selected ids: none