DataSet ds1=GetDataSet1();
DataSet ds2=GetDataSet2();
ds1.Merge(ds2,true,MissingSchemaAction.AddWithKey);
return ds1;
//ds1就是合并后的DataSet了
DataSet ds1=GetDataSet1();
DataSet ds2=GetDataSet2();
ds1.Merge(ds2,true,MissingSchemaAction.AddWithKey);
return ds1;
//ds1就是合并后的DataSet了
转载于:https://www.cnblogs.com/caca/archive/2004/12/23/81196.html