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.
Syncfusion Feedback

Sorting in order

Thread ID:





20971 Oct 28,2004 11:43 PM Oct 29,2004 01:09 AM Windows Forms 1
Tags: GridControl
Tarun Gujral
Asked On October 28, 2004 11:43 PM

Hi , Currently I am using Essential Grid 2.0. Is there a way in which a Databound grid can be sorted in particular order i.e. Ascending or descending. Using sortcolumn twice for descending order creates problem.

Administrator [Syncfusion]
Replied On October 29, 2004 01:09 AM

You can do the sort directly through the DataView associated with the CurrencyManager. Here is a snippet. CurrencyManager cm = this.BindingContext[grid.DataSource, grid.DataMember] as CurrencyManager; DataView dv = cm.List as DataView; dv.Sort = "FirstName ASC" // or dv.Sort = "FirstName DESC"


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.

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