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.
Unfortunately, activation email could not send to your email. Please try again.

Column sort order

Thread ID:

Created:

Updated:

Platform:

Replies:

61651 May 30,2007 11:32 AM May 30,2007 11:50 AM Windows Forms 1
loading
Tags: GridControl
Vinod
Asked On May 30, 2007 11:32 AM

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 11:50 AM

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.

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.

;