title: Copy selected data from DataTable to another DataTable
body: <p>I want to select some of the data from a datatable and copy it into another data table. I found the answer in one question - <a href="https://stackoverflow.com/questions/7109268/how-to-query-a-datatable-in-memory-to-fill-another-data-table">How to query a DataTable in memory to fill another data table</a></p>
  
  <pre><code>DataTable table = GetDataTableResults();
  DataTable results = table.Select("SomeIntColumn &gt; 0").CopyToDataTable();
  </code></pre>
  
  <p>This code does not work and causes the error - </p>
  
  <pre><code>'System.Array' does not contain a definition for 'CopyToDataTable' and 
  no extension method 'CopyToDataTable' accepting a first argument of type 
  'System.Array' could be found (are you missing a using directive or 
  an assembly reference?)
  </code></pre>
  
  <p>I am using visual studio 2008 and .net 3.5.</p>