The Grouping sample is a great example of providing a custom GroupNameFromItem and SortComparer to do “arbitrary” grouping on grid items.
My suggestion would be to take this one step further and provide a method like MultipleGroupNamesFromItem that would return an *array* of group names. The same item would possibly appear in the grid multiple times — once for each of the returned group names.
The best example of why this would be useful can be found in Outlook 2007. You can assign one or more categories to each e-mail in your Inbox. If you assign two categories to a single e-mail, and then group by category, you will find the same item displayed under both groups.
Our application has a number of fields like “Categories” that really need this functionality. Thanks for your consideration!
Imported from legacy forums. Posted by Ed (had 534 views)