GGC and Group only By Date

Hello

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

(e.g.
01.01.2007 10:34:45,
01.01.2007 11:21:27,
01.01.2007 14:11:17
to one group)


Greetings
Alexander


2 Replies

AD Administrator Syncfusion Team December 10, 2007 10:56 AM UTC

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.



GroupByDate.zip


AS Alexander Schlicht December 10, 2007 12:52 PM UTC

Hi Clay Burch!

Your sample works fine.
Thanks for your quick help.

Alexander




Loader.
Up arrow icon