Should I bind to ICollectionView or ObservableCollection

前端 未结 5 609
失恋的感觉
失恋的感觉 2020-11-29 19:44

Should one bind DataGrid to the

ICollectionView = CollectionViewSource.GetDefaultView(collection)

or to the

Observabl

5条回答
  •  醉梦人生
    2020-11-29 20:07

    You would bind to the view if you wish your grid to display the settings applied to the view, e.g. filtering, otherwise the view is redundant.

提交回复
热议问题