Hi James,
Thank you for being patience.
The idea to skip and disable the checkbox whose row is inactive is by handling the QueryCellStyleInfo event and set the corresponding checkbox to be disabled.
For example, in the following code snippet the column 'Col2' decides the row being inactive or active
>>>>>>>>>>>>>>>Code Snippet<<<<<<<<<<<<<<<<<<<
private void gridGroupingControl1_QueryCellStyleInfo(object sender, Syncfusion.Windows.Forms.Grid.Grouping.GridTableCellStyleInfoEventArgs e)
{
if(e.TableCellIdentity.TableCellType == GridTableCellType.RecordFieldCell || e.TableCellIdentity.TableCellType == GridTableCellType.AlternateRecordFieldCell)
{
if(e.TableCellIdentity.Column.Name.Equals("Col0"))
{
Element el = e.TableCellIdentity.DisplayElement;
if(el != null && el.Kind == DisplayElementKind.Record)
{
Record r = el.GetRecord();
string key;
if (r != null && r.GetValue("Col2") != null)
{
key = r.GetValue("Col2").ToString();
if(key.Equals("inactive"))
{
e.Style.CellValue = false;
e.Style.Enabled = false;
e.Handled = true;
}
}
}
}
}
}
>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<
Sample:
GGC_CheckBoxIssue.zipThe following KB article demonstrates the technique to have check box in header cell
http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=346
Please try the above the code snippet and let us know if you need any further assistance.
Have a nice day.
Best regards,
Madhan