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

Non-Alpha Sorting of Grouped Records

Thread ID:





16863 Jul 26,2004 02:03 PM UTC Aug 11,2005 12:40 PM UTC WinForms 2
Tags: Grouping
Administrator [Syncfusion]
Asked On July 26, 2004 02:03 PM UTC

I have a grouping grid that is grouped by a certain column, i.e. "Duration" Typically examples of Duration are Duration 0 to 1 Duration 6 to 6 Duration 10 to 12 The problem is I don''t want the grouping to be sorted by the aphanumeric value of the text, I actually have a numeirc value for each Duration item as well. I could prefix the Duration column with its corresponding numeric value to get grouped sorting to work - but that''s not ideally what I want. Do I have to hook into one of the rendering events to pick out the correct description for a value, ie Name/Value approach? Thanks Jason

Administrator [Syncfusion]
Replied On July 29, 2004 02:01 PM UTC

Here is a sample that has implementation for IComparer and ICategorizer and changing the caption text in QueryCellStyleInfo. This sample groups the rows into groups based on ranges of values. For instance, one set of rows will have values in the range 1-10, another in the range 11-25.

Jason Hales
Replied On August 11, 2005 12:40 PM UTC

just got round to trying this...a year after I asked the question...and it works a treat Thanks Jason


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