title: How to add particular number of rows to a datatable in C# .net?
body: <p>I have 'n' number of rows in datatable1. Now i want add 'n' number of rows to datatable2.Its notable that two datatables are having different number of columns.Can anyone please help me with c# coding?</p>
  
  <p>I have used following code but it doesn't work.</p>
  
  <pre><code>            datatable1 = feeCompBLL.getcommunity();
              foreach (DataRow drow in datatable1.Rows)
              {
                  DataRow table2rows = datatable2.NewRow();
                  datatable2.Rows.Add(table2rows );
  
              }
  </code></pre>