WPF BindingListCollectionView to ListCollectionView for DataTable as ItemsSource
- by Marco
Hi everyone,
I want to do custom sorting on a ListView which has a DataTable as ItemsSource:
myListView.ItemsSource = (data as DataTable);
And this are the first lines of my sorting function:
DataView view = (myListView.ItemsSource as DataTable).DefaultView;
ListCollectionView coll =…