首页 > 其他 > 详细

DataTable

时间:2014-07-31 20:00:07      阅读:223      评论:0      收藏:0      [点我收藏+]
排序 

DataTable dtlDOHFLI = (DataTable)_pkgBusiData.OutData["FDWDOHLIST"];
        if (dtlDOHFLI.Rows.Count > 0)
        {
            DataView dv = dtlDOHFLI.DefaultView;
            dv.Sort = "DOHID Desc";
            DataTable dt = dv.ToTable();
            gvDohList.ExtRecordCount = dt.Rows.Count;
            gvDohList.ExtDataBind(dt);
        }

//筛选

DataTable dtlFLILsit = (DataTable)_pkgBusiData.OutData["FDWFLILIST"];
        if (dtlFLILsit.Rows.Count > 0)
        {
            DataTable dtNew = dtlFLILsit.Clone(); //复制数据源的表结构
            DataRow drs = dtlFLILsit.Rows[0];
            dtNew.ImportRow(drs);
            gvFliList.ExtRecordCount = dtNew.Rows.Count;
            gvFliList.ExtDataBind(dtNew);
        }

 

DataTable,布布扣,bubuko.com

DataTable

原文:http://www.cnblogs.com/hausthy/p/3881170.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!