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:

Created:

Updated:

Platform:

Replies:

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

Hi,

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

Thnaks and Regards,
Vinod

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,
Haneef

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

;