手机
当前位置:查字典教程网 >编程开发 >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的方法】相关文章:

C# 判断两张图片是否一致的快速方法

asp.net 日期函数 某月的第一天和最后一天的日期

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

ASP.net中md5加密码的方法

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

c#中实现文件拖放打开的方法

.NET实现在网页中预览Office文件的3个方法

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

asp.net Timer的使用方法

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

精品推荐
分类导航