博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
DataSet 中的数据排序 及 DataRow装成DataTable
阅读量:7053 次
发布时间:2019-06-28

本文共 816 字,大约阅读时间需要 2 分钟。

1、DataSet 中的数据排序

DataSet ds = new DataSet();            // 获取当前排口的数据            ds = _xiaobill.GetHistoryData(yinZiBianm, zhanDian, beginDate, endDate, dNum);            DataTable dt = ds.Tables[0];            DataRow[] dt2 = dt.Select("1=1","数据时间 ASC ");

 

DataRow[]装成DataTable

DataSet dsCheckList = _yinziBill.SearchJianKongYinZiByType(zhanDian);            DataRow[] dr = dsCheckList.Tables[0].Select("因子国际编码 in ('B02','01','02','03','04')");            DataTable t = dsCheckList.Tables[0].Clone();            t.Clear();            foreach (DataRow row in dr)            {                t.ImportRow(row);            }            this.CheckBoxList1.DataSource = t;            this.CheckBoxList1.DataValueField = "因子ID";            this.CheckBoxList1.DataTextField = "因子名称";            this.CheckBoxList1.DataBind();

 

转载地址:http://xzpol.baihongyu.com/

你可能感兴趣的文章
服务器的几种时间同步
查看>>
我的友情链接
查看>>
WPF“动画序列”框架的初步研究与实现(附源码)
查看>>
校招求职面试连载(二)
查看>>
网络学习(三十一)操作系统无人值守自动安装之Windows XP
查看>>
handler 机制
查看>>
解决mysql无法导入本地文件的问题
查看>>
HBase 系统架构
查看>>
RichFace标签学习笔记
查看>>
iOS中block介绍(四)揭开神秘面纱(下)
查看>>
更改yum源为阿里云的yum源
查看>>
解决exchang服务器连接不可用问题
查看>>
Tomcat启动权限
查看>>
一步一步學習partitions之hash partitions
查看>>
POJ 1061 青蛙的约会 扩展欧几里得
查看>>
我的友情链接
查看>>
随笔-ftp文件上传,删除
查看>>
Ansible问题汇总
查看>>
linux上部署hadoop集群 基础篇
查看>>
java中堆(heap)和堆栈(stack)
查看>>