title: How to convert a List into DataTable
body: <p>I'm getting values from another data table as input to list. Now i need to save those list values into another DataTable.</p>
  
  <p>List: </p>
  
  <pre><code>List&lt;DataRow&gt; list = slectedFieldsTable.AsEnumerable().ToList();
  foreach (DataRow dr in slectedFieldsTable.Rows)
  {
      list.Add(dr);
  }
  </code></pre>
  
  <p>New Data table :</p>
  
  <pre><code>DataRow newRow = tempTable.NewRow();
  newRow["Field Name"] = fieldLabel;
  newRow["Field Type"] = fieldType;
  
  for(int gg =0 ; gg&lt;list.Count; gg++)
  {
      tempTable.Rows.Add(????);
  }
  </code></pre>
  
  <p>I'm stuck here in adding up rows in to new data table.</p>