Returns an array of the selected rows.
A Map
with the selected rows.
Determines if a row can be selected or not.
The id of the row.
A boolean indicating if the row can be selected.
Determines if a row is selected or not.
The id of the row.
A boolean indicating if the row is selected.
Change the selection state of a row.
The id of the row.
Optional
isSelected: booleanPass false
to unselect a row. Default is true
.
Optional
resetSelection: booleanWhether to reset the already selected rows or not. Default is false
.
Sets the new row selection model.
⚠️ Caution: setRowSelectionModel
doesn't apply the selection propagation automatically.
Pass model returned by API method getPropagatedRowSelectionModel
instead to apply the selection propagation.
The new row selection model
The selection API interface that is available in the grid [[apiRef]].