|
this.sfDataGrid1.CellCheckBoxClick += SfDataGrid1_CellCheckBoxClick;
private void SfDataGrid1_CellCheckBoxClick(object sender, Syncfusion.WinForms.DataGrid.Events.CellCheckBoxClickEventArgs e)
{
if(e.Column.MappingName == "Selection")
{
var id = (e.Record as DataRowView).Row["Id"];
this.sfDataGrid1.View.Records.Where(x => (x.Data as DataRowView).Row["Id"].ToString() == id.ToString()).ForEach(i => (i.Data as DataRowView).Row["Selection"] = e.NewValue);
}
} |