HOW TO ADD ROWS OF 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);
}
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