Hi I have a problem with the CollectionViewSource performance. I have a CollectionViewSource bound to a Datagrid. The underlying CollectionView object contains one group description. I also use a filter that I change quite often to filter the CollectionView. Each time I change the filter, GroupDescriptions get cleared automatically. If I try to add again my group description after I change the filter, the UI freezes for a few seconds which is quite annoying. Normally the CollectionView contains 200-1000 objects. What could I do to speed up performance?
Asked
Active
Viewed 2,731 times
1
-
is it wpf datagrid or some third party ? – Muds Feb 18 '15 at 16:22
-
it is a custom datagrid inheriting from WPF datagrid – muku Feb 19 '15 at 10:50
1 Answers
0
If you're using .net 4.5, enable grouping virtualization on the DataGrid:
VirtualizingStackPanel.IsVirtualizingWhenGrouping="True"

seaotternerd
- 6,298
- 2
- 47
- 58

josenyc
- 9
- 1
-
-
Have a look here: http://stackoverflow.com/questions/1477044/wpf-datagrid-virtualization-with-grouping – josenyc May 19 '15 at 21:42