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

Sorting in order

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.

1 Reply

AD Administrator Syncfusion Team 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"

Loader.
Live Chat Icon For mobile
Up arrow icon