We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

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.
Live Chat Icon For mobile
Up arrow icon