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.

Outlook style date grouping

Thread ID:

Created:

Updated:

Platform:

Replies:

66610 Jul 31,2007 11:19 AM Jul 31,2007 03:37 PM Windows Forms 1
loading
Tags: Grouping
James Evans
Asked On July 31, 2007 11:19 AM

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

haneefm [Syncfusion]
Replied On July 31, 2007 03:37 PM

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

CONFIRMATION

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.

;