title: Why errors when filters DataTable with CollectionView?
body: <p>As titled.</p>
  
  <p>So I was successfully to put <code>DataTable</code> into my <code>CollectionView</code> with using:</p>
  
  <pre><code>    ICollectionView _collectionView { get; set; }
      public ICollectionView collectionView {......}
  
              DataTable myDataTable= new DataTable();
              myConnection.Open();
              dbAdpater.Fill(myDataTable);
              myConnection.Close();
              var collectionList= (newLeadTable as IListSource).GetList();
              this.collectionView = CollectionViewSource.GetDefaultView(collectionList);
  </code></pre>
  
  <p>I know each of the object in the list is <code>DataRowView</code> and as I tested with iterating the data and I can see is stored properly.</p>
  
  <p>The <code>DataGrid</code> was display properly when I execute the code.</p>
  
  <p>But once I added the Filter:</p>
  
  <pre><code>            this.collectionView.Filter = new Predicate&lt;object&gt;(
                  (obj) =&gt;
                  {
                      return false; //Just for testing propose
                  }
              );
  </code></pre>
  
  <p>When I execute the code is giving me error:</p>
  
  <blockquote>
    <p>Cannot create instance of 'Window1' defined in assembly 'TestWPF,
    Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. Exception has
    been thrown by the target of an invocation.  Error in markup file
    'TestWPF;component/Window1.xaml' Line 1 Position 9.</p>
  </blockquote>
  
  <p>And output:</p>
  
  <blockquote>
    <p>A first chance exception of type 'System.NotSupportedException'
    occurred in PresentationFramework.dll</p>
  </blockquote>
  
  <p>I also tried to stores converts the <code>DataTable</code> into a list of <code>custom object</code> for filtering, but is working fine.</p>
  
  <p>So I wonder what did I done wrong when filtering with <code>DataTable</code>?</p>