Using Expander in DataGrid's GroupStyle

Jan 19, 2009 at 11:40 PM
I am using an Expander in my DataGrid <GroupStyle.ContainerStyle> to provide data grouping. After I set the grid's ItemsSource, all the groups are initially expanded. I can live with this though I am not crazy about it. Also, if I have had the grid open for a while and the user has collapsed some groups, as soon as a row is added programmtically, all the groups expand again -- this is even more troubling. How can I have better control of the expansion of groups? Thanks!
Coordinator
Jan 21, 2009 at 1:52 PM
I just wrote a blog post on this here, http://blogs.msdn.com/vinsibal/archive/2009/01/21/exploring-mvvm-grouping-with-the-datagrid.aspx, that can possibly help.