I have one table with ‘status’ column and I want to disable a row depending on Status column value.
If Status column value is 1 then user can select that row but if status value is 0 then user will not allow to select that row.
for every 0 value row should be disable.
in the onRowClick action?
if event.value['status'] == 0:
and for the selectedRow prop you can add in
self.props.selection.selectedRow = None
Tho it will still count as clicked for a millisecond so best not use any scripts on a binding on the ‘selectedRow’ prop, but write all the code inside the if statement.
if you use a multi select you will have to add in some more logic with the selection.data prop to not erase that on click