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

Outlook style date grouping

I am trying to implement outlook style date grouping. I have had a look at the Outlook2007 sample but it doesn't quite do what I am trying to achieve.

I have a column called Due Date which I am displaying as a date. When the user groups by this column by dragging the Due Date into the group drop area I would like to apply an outlook style categorisation on the date so the user sees the dates categorised as Today, Yesterday, Last Week, 2 Weeks ago etc … in the group caption but when the dates are displayed in the grid column they are the actual dates rather then the grouping categorisation.

Thanks
James

1 Reply

HA haneefm Syncfusion Team July 31, 2007 07:37 PM UTC

Hi James,

In the TableDescriptor.GroupedColumns.Changed event, you can add your custom categorizer object to the SortColumnDescriptor. To create custom Categorizer objects, you define classes that implement ICategorizer. When you do this, whenever you group a specfic column it will be custom grouped.

Please refer this forum thread for a sample application
http://www.syncfusion.com/support/Forums/message.aspx?MessageID=57064

Also, check this knowledgebase article that shows you "How to create custom group in a GridGroupingControl?".
http://www.syncfusion.com/support/kb/grid/Default.aspx?ToDo=view&questId=147

Best regards,
Haneef

Loader.
Live Chat Icon For mobile
Up arrow icon