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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Disable sorting

Thread ID:

Created:

Updated:

Platform:

Replies:

90925 Oct 25,2009 07:59 AM UTC Oct 26,2009 06:37 AM UTC WinForms 1
loading
Tags: GridControl
Arseny Khutoriansky
Asked On October 25, 2009 07:59 AM UTC

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?

Jisha Joy [Syncfusion]
Replied On 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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;