Hi James,
Thank you for your interest in Syncfusion Products.
If your intension is to allow sorting only for the grouped columns, this can be achieved by handling the TableControlQueryAllowSortColumn event of GridGroupingControl.
Here is the code:
this.gridGroupingControl1.TableControlQueryAllowSortColumn += new Syncfusion.Windows.Forms.Grid.Grouping.GridQueryAllowSortColumnEventHandler(gridGroupingControl1_TableControlQueryAllowSortColumn);
void gridGroupingControl1_TableControlQueryAllowSortColumn(object sender, Syncfusion.Windows.Forms.Grid.Grouping.GridQueryAllowSortColumnEventArgs e)
{
if (e.Column.GetName() != "Col1")
{
e.AllowSort = false;
}
}
Please refer the sample in the link to illustrate this:
http://websamples.syncfusion.com/samples/Grid.Windows/72273/main.htmKindly try this and let me know if you need further assistance.
Regards,
Jisha