将dataDt1的行数据复制给newDt2中
DataTable dataDt1=new DataTable();
DataTable newDt2=new DataTable();
foreach (DataRow row in dataDt1.Rows)
{
DataRow dataRow = newDt2.NewRow();
dataRow.ItemArray = row.ItemArray;
newDt2.Rows.InsertAt(dataRow, 0);
}
将dataDt1的行数据复制给newDt2中
DataTable dataDt1=new DataTable();
DataTable newDt2=new DataTable();
foreach (DataRow row in dataDt1.Rows)
{
DataRow dataRow = newDt2.NewRow();
dataRow.ItemArray = row.ItemArray;
newDt2.Rows.InsertAt(dataRow, 0);
}