Change Datagrid Row Background Color on Click

How can I change the datagrid background color when I select a specific row? Here is an example.


I don’t want to use the checkbox, I just want when someone clicks on it the color is changed.

Its not possible for the moment, but we planned to have row color available as a formula, and then it will be possible

I did that actually by creating a custom variable. when click change the value of the variable to the list item key/index, then use if statements in your style. Ex: If variable = key then “red” else “blue”. Same can be done with hover interactions.

Let me know if you cannot figure it out

Thanks! Could you provide a couple screenshots of how you do this?