How would I add grouping to the DataList and DataGrid controls?
I do add a CollectionViewSource to both controls, group the data in the ViewModel and point the CollectionViewSource's source property to the new grouped IEnumerable. It works but the DataGrid and DataList's OnCollectionChanged event never gets fired again. So the problem is that the VirtualCollection never gets updated with new items when you scroll down. It only has the 16 and no more.
How would I add grouping to the DataList and DataGrid controls?
I do add a CollectionViewSource to both controls, group the data in the ViewModel and point the CollectionViewSource's source property to the new grouped IEnumerable. It works but the DataGrid and DataList's OnCollectionChanged event never gets fired again. So the problem is that the VirtualCollection never gets updated with new items when you scroll down. It only has the 16 and no more.
Please help.