DataTable newtable = GZBH1.Clone(); int Count = newtable.Rows.Count; object[] obj = new object[newtable.Columns.Count]; for (int j = 0; j < GZBH1.Rows.Count; j++) { GZBH1.Rows[j].ItemArray.CopyTo(obj, 0); newtable.Rows.Add(obj); } for (int j = 0; j < GZBH2.Rows.Count; j++) { GZBH2.Rows[j].ItemArray.CopyTo(obj, 0); newtable.Rows.Add(obj); } for (int j = 0; j < GZBH3.Rows.Count; j++) { GZBH3.Rows[j].ItemArray.CopyTo(obj, 0); newtable.Rows.Add(obj); }
|