microsoft / InventorySample

Sample UWP application for LOB scenarios
MIT License
591 stars 199 forks source link

Grouping #70

Open JuandreG opened 3 years ago

JuandreG commented 3 years ago

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.