title: .net can I add a typed row to a new (empty) data table?
body: <p>I want to create a new table from a row that came from another table.  In the example below <code>_DataRow</code> is a <code>Private</code> variable of the class.</p>
  
  <p>Is this feasible, or do I need to define the columns of the data table first?</p>
  
  <p>Example in vb.net</p>
  
  <pre class="lang-vb prettyprint-override"><code>Public Sub CreateDataTableFromTypedRow()
      Dim dt As New DataTable
      dt.Rows.Add(_DataRow)
  End Sub
  </code></pre>
  
  <p>Example in C#</p>
  
  <pre><code>public void CreateDataTableFromTypedRow()
  {
      DataTable dt = new DataTable;
      dt.Rows.Add(_DataRow);
  }
  </code></pre>