DataTable中 DataRow复制一行到另一个DataTable 此行已属于另一个表

方法1:
DataTable t=new DataTable(); DataRow r=t.NewRow(); r.ItemArray=oldRow.ItemArray; t.Rows.Add(r);
方法2:
t.ImportRow(oldRow);

 

posted on 2015-08-10 13:03  普向东的博客  阅读(465)  评论(0编辑  收藏  举报

导航