I've got two groups in my datagrid. First one is the main group and the second is the subgroup, what I want to do is hide the Main group and just show the subgroups in my data grid. Here is the code:
ListCollectionView collection = new ListCollectionView(bdata);
collection.GroupDescriptions.Add(new PropertyGroupDescription("tid"));// I want to hide this group but not remove it
collection.GroupDescriptions.Add(new PropertyGroupDescription("PkgName"));// Just show Items Based on this group
dataGrid1.ItemsSource = collection;
Any help would be great.
Thanks
Salman