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

Column sort order

Hi,

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

Thnaks and Regards,
Vinod

1 Reply

HA haneefm Syncfusion Team 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

Loader.
Live Chat Icon For mobile
Up arrow icon