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

Sorting in order

Thread ID:

Created:

Updated:

Platform:

Replies:

20971 Oct 29,2004 03:43 AM UTC Oct 29,2004 05:09 AM UTC WinForms 1
loading
Tags: GridControl
Tarun Gujral
Asked On October 29, 2004 03:43 AM UTC

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 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"

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.

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

;