1.// DataTable ds = new DataTable();
ds=dt.Copy();
2.//DataTable的赋值
System.Data.DataTable newtb = new System.Data.DataTable();
DataColumn column = new DataColumn("column1", typeof(string));//新增列
newtb = dt.Clone();
DataRow[] dr = dt.Select();
for (int i = 0; i < dr.Length; i++)
{
newtb.ImportRow((DataRow)dr[i]);
}
newtb.Columns.Add(column);