Using Expander in DataGrid's GroupStyle

Jan 19, 2009 at 10: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!
Jan 21, 2009 at 12:52 PM
I just wrote a blog post on this here,, that can possibly help.