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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Sorting a grid

Thread ID:





17507 Aug 10,2004 03:42 PM UTC Aug 10,2004 03:59 PM UTC WinForms 1
Tags: GridControl
Asked On August 10, 2004 03:42 PM UTC

Hi I am using a databound grid.On some event I want to sort the grid by one column in ascending order only. I dont know which way the grid is sorted now. If I call gridDataBoundGrid1.SortColumn(11); and grid is already sorted in ascening order by column 11 it gets sorted in descending order. Is there any other way?

Administrator [Syncfusion]
Replied On August 10, 2004 03:59 PM UTC

You can use the CurrencyManager and sort its List property directly. CurrencyManager cm = (CurrencyManager)this.BindingContext[this.grid.DataSource, this.Grid.DataMember]; DataView dv = cm.List as DataView; dv.Sort = "Column11Name ASC";


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

This page will automatically be redirected to the 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

Live Chat Icon For mobile
Live Chat Icon