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 05:09 AM UTC

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