title: How to bind DataTable to Datagrid?
body: <p>I have a problem binding a DataTable to a Gridview. I have already searched for solutions but just can't get rid of the error. The bindwing works fine when using WindowsForms, so the DataTable is correct. I just can't bind it to a WPF Gridview.</p>
  
  <p><strong>XAML:</strong> </p>
  
  <pre><code>&lt;ListView x:Name="listView1"  ItemsSource="{Binding phnDirectory}"
  </code></pre>
  
  <p><strong>C#</strong></p>
  
  <pre><code>DataTable phnDirectory = obj.Getphone_directory();
  listView1.ItemsSource = phnDirectory;
  </code></pre>
  
  <p>But it says "can not convert datatable to Collection.IEnumerables"</p>
  
  <p>so what is the solution?
  thanks in advance</p>