现在的位置: 首页 > 综合 > 正文

C# DataTable 条件查询

2014年02月23日 ⁄ 综合 ⁄ 共 500字 ⁄ 字号 评论关闭

DataTable drReport=new DataTable();

DataRow[] pdrs111 = dtReport.Select("code='" + strNoCode + "'");
                        if (pdrs111.Length > 0)
                        {
                            foreach (DataRow dr111 in pdrs111)
                            {
                                decfd_1 = Convert.ToDouble(dr111["fd"].ToString());
                                dr111["fd_no"] = dtNOValue;
                                dr111["fd_no_toal"] = decfd_1 + dtNOValue;
                            }
                        } 

抱歉!评论已关闭.