<ReactDataGrid
columns={[
{ key: 'time', name: 'time', width: 140, formatter: (props) => (<span>{props.value}</span>), sortable: true },
{ key: 'Size', name: 'Size', width: 80, formatter: (props) => (<span>{props.value}</span>) },
{ key: 'qaw', name: 'dash Value', width: 350 },
]}
rowGetter={this.rowGetter}
rowsCount={list.length}
emptyRowsView={() => (<div />)}
rowSelection={{
showCheckbox: true,
onRowsSelected: this.onVersionRowsSelect,
onRowsDeselected: this.onVersionRowsDeselect,
selectBy: {
indexes: this.state.selectedIndexes
}
}}
/>
Above is my code of react-data-grid. I want to disable row selection for particular row on some condition or want to disable checkbox for that specific row.
Please let me know how it can be achieved. Thanks