I have a wpf datagrid with grouped rows, implemented using a CollectionViewSource. It appears the group header templates bind directly to CollectionViewGroup objects, but for some reason these aren't very accessible inside the CVS. You give the CollectionViewSource the group names, and it handles generating the CVG's behind the scenes. This makes things difficult if you want the group header styles to bind to something other than what few properties the CVG's expose, like Name and ItemCount.
Basically, I want every group to have a Status property, probably to be visually indicated by the group header background color. This Status can change, so somehow the header will have to detect propertychanged notifications. But since CollectionViewGroup does not have a Status property, and I cannot supply my own CVGs to the CollectionViewSource, I've no idea how to do this simple task.