I want to prevent the material Ui Datagrid multiple checkbox section. When I select the checkbox section the particular row should be select and the other rows are remain unselected. I tried the disableMultipleSelection option but it would not work.
<DataGrid
rows={cycle}
columns={columns}
pageSize={10}
checkboxSelection
disableMultipleSelection
onRowSelected={({ data, isSelected }) => {
setDisplay(isSelected);
setCycleId(data.key);
setCycleImg(data.storageRef);
}}
/>
```[enter image description here][1]
[1]: https://i.stack.imgur.com/odmXY.png
Aucun commentaire:
Enregistrer un commentaire