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.
Up arrow icon