1

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?

muku
  • 238
  • 1
  • 7
  • 20

1 Answers1

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