Data Grid — Selection
Data DisplayselectionChange .
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.
| 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.
| Ana Popescu | Platform | |
| Mihai Ionescu | Design | |
| Elena Dumitru | Platform | |
| Andrei Stan | Data | |
| Ioana Marin | Design |
Selected ids: none