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

Get sort string

Thread ID:





50100 Oct 5,2006 01:57 PM UTC Oct 6,2006 04:25 AM UTC WinForms 1
Tags: GridControl
Nick Gardner
Asked On October 5, 2006 01:57 PM UTC

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?



Administrator [Syncfusion]
Replied On 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 );



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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

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