title: How to get columns from a datarow?
body: <p>I have a row collection (DataRow[] rows). And I want to import all rows to another DataTable (DataTable dt).</p>
  <p>But how?</p>
  <h3>Code</h3>
  <pre><code>DataTable dt;
  if (drs.Length&gt;0)
  {
      dt = new DataTable();
  
      foreach (DataRow row in drs)
      {
          dt.Columns.Add(row???????)
      }
  
      // If it possible, something like that =&gt; dt.Columns.AddRange(????????)
  
      for(int i = 0; i &lt; drs.Length; i++)
      {
          dt.ImportRow(drs[i]);
      }
  }
  </code></pre>