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 and Grouping on a Date field

Thread ID:





93632 Mar 25,2010 02:31 PM UTC Apr 6,2010 09:16 AM UTC ASP.NET Web Forms (Classic) 2
Tags: GridGroupingControl
Asked On March 25, 2010 02:31 PM UTC

Hi there

When I try to group by a date column the sorting breaks and it is no longer sorted like a proper date, but instead sorts like a string.

the date sorting working fine when not grouped using the SortedColumns_Changing event and changing the .Comparer, it also works fine when you try to sort the group header using the SortedGroupColumns_Changing having changed the .Comparer.

how ever it sorts it incorectly straight after the group is created.

is there another event i can handle?

Replied On March 25, 2010 03:07 PM UTC

as an update i have noticed that i'm using version

I'll try downloading a newer version and see if that helps.

Rajadurai C [Syncfusion]
Replied On April 6, 2010 09:16 AM UTC

Hi Jonathan,

Thanks for your interest in Syncfusion Products.

Sorting on the date column which is grouped initially, works fine by default. From the provided update, it seems, you were handling the sorting through custom comparer. Could you please let me know the reason for handling custom sorting? There is no need to handle any events explicitly for the default behavior.

The code handled in the CustomComparer class in your application might be responsible for the issue you are facing. If you provide us a minimal sample with the code settings used in your application, it would be fine for us to see the issue and work to provide respective solution.



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