title: how to add datatable to dataset in asp.net
body: <pre><code>DataSet ds = new DataSet();
  DataRow[] foundRows;
  foundRows = ds.Tables[0].Select("MerchantName LIKE '%'", "MerchantName");
  
  DataTable DataTable2 = new DataTable();
  DataTable2 = ds.Tables[0].Clone();
  foreach (DataRow dr in foundRows)
  {
      DataTable2.ImportRow(dr);
  }
  ds.tables[0].rows.add(DataTable2); // error table already exists.
  Loadimages(ds);
  </code></pre>
  
  <p>hi all,
  upto foreach loop everything is working fine. In loadimages method i have to dataset. but i have the data in datatable. If i add datatable to dataset i am getting the error saying table already exists.
  Please help me regarding this.</p>
  
  <p>Thanks in advance..</p>