手机
当前位置:查字典教程网 >编程开发 >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中List的使用方法

利用Timer在ASP.NET中实现计划任务的方法

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

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

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

asp.net Timer的使用方法

ASP.NET中为GridView添加删除提示框的方法

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

asp.net2.0中css失效的解决方法

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

精品推荐
分类导航