title: WPF BindingListCollectionView to ListCollectionView for DataTable as ItemsSource
body: <p>I want to do custom sorting on a ListView which has a DataTable as ItemsSource:</p>
  
  <pre><code>myListView.ItemsSource = (data as DataTable);
  </code></pre>
  
  <p>And this are the first lines of my sorting function:</p>
  
  <pre><code>DataView view = (myListView.ItemsSource as DataTable).DefaultView;
  
  ListCollectionView coll = (ListCollectionView)CollectionViewSource.GetDefaultView(view);
  </code></pre>
  
  <p>The second line throws an execption like:</p>
  
  <p>Unable to cast "System.Windows.Data.BindingListCollectionView" to "System.Windows.Data.ListCollectionView"</p>
  
  <p>Has anyone a solution? Thx 4 answers </p>