0

I know CollectionViewSource support grouping and sorting, except this, is there any other difference between binding ItemsSource to an ObservableCollection and to a CollectionViewSource?

James
  • 2,570
  • 7
  • 34
  • 57

1 Answers1

1

CollectionView of the underlying CollectionViewSource in addition to grouping, sorting, filtering, maintains CurrentItem that comes handy while setting from ViewModel.

Tilak
  • 30,108
  • 19
  • 83
  • 131
  • It means we'd better always use CollectionViewSource instead of binding to an ObseravableCollection directly? – James Nov 22 '13 at 05:27
  • It depends. I tend to use `CollectionViewSource` whenever simple grouping/filtering/current item is required. For all other, Usually I go with ObservableCollection. This is merely my preference (and not a stardard/guideline) – Tilak Nov 22 '13 at 05:29