遍历 DataSet
2015-09-14 21:49
211 查看
DataSet ds=new DataSet ; //获取dataset的第一张table,取其他table只须改下标 DataTable dt=ds.tables[0]; //遍历行 foreach(datarow dr in dt.rows) { //遍历列 for(int i=0;i<dt.columns.count;i++) { response.write(dr[i].tostring(); } response.write("<br />"); }
相关文章推荐
- 7种网络编程I/O模型代码实现实例
- Date 类烂,用Calendar。
- 任务
- Network WebView
- 双日历日期选择控件
- c# 声明变量 string int 要赋初值
- 【软考视频】数据结构
- 游戏音效资源
- android学习之路之listView的优化问题
- 面对的问题----一般系统论笔记
- 指针部分,建立动态数组
- hdu 2870 Largest Submatrix 最大子矩阵
- 关于数据科学,书上不曾提及的三点经验
- hdu 2609 How many(最小表示法模板+set判重)
- uigrid.reposition 多个ITEM不会重叠
- 指针部分,建立动态数组
- IE7浏览器绝对定位被下边元素遮挡问题解决办法
- HDU 5444 Elven Postman 二叉排序树
- 单例模式 自我理解
- 数据库索引(一)