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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Column sort order

Thread ID:





61651 May 30,2007 03:32 PM UTC May 30,2007 03:50 PM UTC WinForms 1
Tags: GridControl
Asked On May 30, 2007 03:32 PM UTC


How to get the current column sort-order in GGC_TableControlQueryAllowSortColumn() event handler?

Thnaks and Regards,

haneefm [Syncfusion]
Replied On May 30, 2007 03:50 PM UTC

Hi Vinod,

You can try these code.

void gridGroupingControl1_TableControlQueryAllowSortColumn(object sender, GridQueryAllowSortColumnEventArgs e)
if (e.TableControl.TableDescriptor.SortedColumns.Count > 0)
Console.WriteLine("Sort ColumnName ===>" + e.TableControl.TableDescriptor.SortedColumns[0].Name );
Console.WriteLine("Sort Order ===>" + e.TableControl.TableDescriptor.SortedColumns[0].SortDirection);

Best regards,


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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