Hi Josip,
Thanks for using Syncfusion product.
In order to avoid the selection based on the specific column value, The SelectedRecordsChanging event can be used to handle the selection and Record.GetValue method can be used to get the specific column value from the record. Please refer to the below code example,
Code example
|
this.gridGroupingControl1.Table.SelectedRecordsChanging += Table_SelectedRecordsChanging;
void Table_SelectedRecordsChanging(object sender, Syncfusion.Grouping.SelectedRecordsChangedEventArgs e)
{
if (e.Action == Syncfusion.Grouping.SelectedRecordsChangedType.Added)
{
String value = e.SelectedRecord.Record.GetValue("Select").ToString();
if (!value.Equals("1"))
e.Cancel = true;
}
} |
Please let us know if you have any concerns.
Regards,
Mohanraj G