title: How to convert DataGrid to dataTable
body: <p>I want to copy all the datagrid records into datatable without using any loop.
  For Ex:</p>
  
  <pre><code>Dim dt as New DataTable
  dt = Datagrid1.Items
  </code></pre>
  
  <p>But this is not Working and giving an error message.</p>
  
  <p>My Development platform is Visual studio 2010 and language is WPF with vb.net 4.0</p>