Monday 12 August 2013

HOW TO ADD ROWS OF DATATABLE TO ANOTHER DATATABLE

HOW TO ADD ROWS OF DATATABLE TO ANOTHER DATATABLE




Add a rows of one datatable to another datatable

DataTable first=new DataTable(); 

DataRow Frow=dt.Rows[1]; //any row 

DataTable second=first.Clone(); // its must to get schema info of first table 

foreach(DataRow r in Frow) // use for multiple row 

second.ImportRow(r); 

No comments:

Post a Comment