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

GGC and Group only By Date

Thread ID:





70372 Dec 10,2007 05:30 AM Dec 10,2007 07:52 AM Windows Forms 2
Tags: GridControl
Alexander Schlicht
Asked On December 10, 2007 05:30 AM


Is there a way to group in a GCC only by the date not the time of a DateTime value of a field?

01.01.2007 10:34:45,
01.01.2007 11:21:27,
01.01.2007 14:11:17
to one group)


Administrator [Syncfusion]
Replied On December 10, 2007 05:56 AM

One way to do this is to use a custom IGroupCategorizer object that ignores the time portion of the values in the column. You can use the grid.TableDescriptor.GroupedColumns.Changing event to catch the action of a column being grouped, and there set the categorizer property of the sort descriptor to be your custom categorizer. Here is a little sample showing how you might do this.


Alexander Schlicht
Replied On December 10, 2007 07:52 AM

Hi Clay Burch!

Your sample works fine.
Thanks for your quick help.



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.

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.