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

Get sort string

Where I have a GridDataBoundGrid that allows double clicking of the column header to sort the grid for that column, how can I get the current sort string for the grid?

Thanks,

Nick

1 Reply

AD Administrator Syncfusion Team October 6, 2006 04:25 AM UTC

Hi Nick,

Try this code to get the sort string of the grid.

DataTable dt = this.grid.DataSource as DataTable;
Console.WriteLine( "Sort String : " + dt.DefaultView.Sort );

Thanks,
Haneef

Loader.
Live Chat Icon For mobile
Up arrow icon