打赏
摘要: public DataTable GetTable(DataRow[] drows) { DataTable tempT = new DataTable(); if (drows.Length == 0) return tempT; tempT = drows[0].Table.Clone();//克隆表结构 DataSet tempDs = new DataSet(); tempDs.Tables.Add(tempT);//添加到辅助数据集中 tempDs.Merge(drows);//利用数据集合并行集到表 return tempDs.Tables[0];//返回此表 }在为DataTa. 阅读全文
posted @ 2011-12-01 15:16 loring 阅读(818) 评论(0) 推荐(0) 编辑