title: How to convert linq result to DataTable
body: <p>I have the following DataTable:</p>
  
  <pre><code>DataTable itemsOnSkid = new DataTable();
  itemsOnSkid.Columns.Add("ItemNumber");
  itemsOnSkid.Columns.Add("Qty");
  </code></pre>
  
  <p>And I need to aggregate this datatable by itemnumber.  I'm using the following linq code:</p>
  
  <pre><code>var result =    from row in itemsOnSkid.AsEnumerable()
                  group row by row.Field&lt;string&gt;("ItemNumber") into grp
                  select new
                  {
                      ItemNumber = grp.Key,
                      Qty = grp.Sum(r =&gt; r.Field&lt;int&gt;("Qty"))
                  };
  </code></pre>
  
  <p>Problem is that I need to replace the first datatable with this result, but I'm not able to use <code>.CopyToDataTable()</code> on result.  </p>
  
  <p>How can I convert this result back to a datatable?</p>