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.

Get sort string

Thread ID:

Created:

Updated:

Platform:

Replies:

50100 Oct 5,2006 09:57 AM Oct 6,2006 12:25 AM Windows Forms 1
loading
Tags: GridControl
Nick Gardner
Asked On October 5, 2006 09:57 AM

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

Administrator [Syncfusion]
Replied On October 6, 2006 12:25 AM

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

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.

;