-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[data grid] How to deselect Row in onRowClick callback in DataGridPro? #14912
Comments
Hi @MarcusKuehn |
I feel like it would make sense to make the row deselection on click a default behavior 🤔 |
This is exactly what we were looking for. Thanks for the fast reply. |
Since everybody seemingly agrees I'll add this to the board! 👍🏼 |
Added to #13188 |
The problem in depth
https://codesandbox.io/p/sandbox/admiring-thunder-m5nf8t
We wanted to build a small DataGrid, where you can select a Row and deselect it by simply left clicking. We thought we can just manipulate the selection with the details.api but found that we are than not able to deselect the row whatsoever (even with Ctrl+leftClick).
Is it even possible to manipulate the default Behaviour of the DataGrid that you can select/deselect a row by just left clicking?
Your environment
`npx @mui/envinfo`
Search keywords: DataGrid
Order ID: 85157
The text was updated successfully, but these errors were encountered: