grouping items in data grid

Oct 15, 2008 at 2:37 PM
Hi all,
I'm trying to add grouping to my datagrid (i'm using the codeplex's DataGrid). Is there any convenient way to do it? In ListView for example I usually use the GroupDescriptions and GroupStyle properties.Is there any corresponding properties in the DataGrid (especially for GroupDescriptions )? Does the GroupStyleSelector & GroupStyle properties has any relevance for that purpose?

Thanks in advance
Coordinator
Oct 16, 2008 at 12:36 PM
Adding a GroupStyle to a DataGrid is similar to a ListView.  The sample on this post, http://blogs.msdn.com/vinsibal/archive/2008/08/11/net-3-5-sp1-and-wpf-datagrid-ctp-is-out-now.aspx, shows how to create a GroupStyle dynamically on the DataGrid.
Oct 19, 2008 at 1:19 PM
Thanks for your reply and for the sample. It's really simple to use it