Yoko Yoko

Yoko Yoko

  • NA
  • 12
  • 3.9k

Datagrid group header

May 28 2015 5:55 AM
Hello All,
 I have a observable collection of students and I have created a collectionviewsource out of that in my viewmodel to group that based on the groupname.
 
GroupView = CollectionViewSource.GetDefaultView(Students);
GroupView.GroupDescriptions.Add(new PropertyGroupDescription("GroupName"));
 
Using  DataGrid.GroupStyle, how to give information like  physics(2/7 ).Here 7 students are there in physics group and out of that 2 student's mark has given.
Is this possible via XAML of from the viewmodel behind.
 
Please help me to figure it out. Thanks in advance .
 
 
 

Answers (4)