Hi~
How to
select DataGridRow not by tapping DataGridRow's cell or DataGridRow.
Only want to
select DataGridRow by tapping the checkbox.
I try customizing selection behavior but not work correct:
class CustomSelectionManager extends RowSelectionManager {
@override
void handleTap(RowColumnIndex rowColumnIndex) {
if(rowColumnIndex.columnIndex > 0) {
return
} else {
_dataGridController.selectedRows.add(checkboxDataGridSource.dataGridRows[rowColumnIndex.rowIndex -1 ]);
}
super.handleTap(rowColumnIndex);
}
}
I have set propterty showCheckboxColumn:true and set selectionManager: CustomSelectionManager()