4
Answers

Datagrid group header

Yoko Yoko

Yoko Yoko

9y
585
1
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)