手机
当前位置:查字典教程网 >编程开发 >asp.net教程 >将DataTable中的一行复制到另一个DataTable的方法
将DataTable中的一行复制到另一个DataTable的方法
摘要:将DataTable中的一行复制到另一个DataTable方法1:DataRowdr=ds2.Tables[0].NewRow();dr.I...

将DataTable中的一行复制到另一个DataTable

方法1:

DataRowdr=ds2.Tables[0].NewRow();

dr.ItemArray=ds1.Tables[0].Rows[i].ItemArray;

ds2.Tables[0].Rows.Add(dr);

方法2:

ds2.Tables[0].ImportRow(ds1.Tables[0].Rows[i]);

【将DataTable中的一行复制到另一个DataTable的方法】相关文章:

asp.net Repeater取得CheckBox选中的某行某个值的c#写法

Asp.net中防止用户多次登录的方法

asp.net GridView 中增加记录的方法

将文本文件的内容或者文字保存成图片的方法介绍

asp.net下出现其中的组件“访问被拒绝”的解决方法

asp.net下url传递中文的解决方案

.net4.0中tuple元组的使用方法

asp.net下Request.QueryString取不到值的解决方法

ASP.NET页面间的传值的几种方法

ASP.NET中DataTable,DataSet,DataView的用法小结

精品推荐
分类导航