Disable sorting

I sort the GGC by same columns.
And I want to disable sorting by user click on any colunmn header.
How can I do it?

1 Reply

JJ Jisha Joy Syncfusion Team October 26, 2009 06:37 AM UTC

Hi Arik,

You could handle the TableControlQueryAllowSortColumn event and set the e.AllowSort property to false. See the code:

void gridGroupingControl1_TableControlQueryAllowSortColumn(object sender, GridQueryAllowSortColumnEventArgs e)
{
e.AllowSort = false;
}

Please let me know if you have any questions.

Regards,
Jisha

Loader.
Up arrow icon