.Net 绑定Dropdownlist的时自定义组合字段后显示

来源:互联网 发布:淘宝限制发布的 编辑:程序博客网 时间:2024/05/20 05:56
 //绑定Dropdownlist的时自定义组合字段后显示
 ta.Fill(dtplan, sysUser.Number, sysUser.Corp.ID, string.Empty, DateTime.Now.AddDays(-15.00), DateTime.Now.AddDays(15.00), "0", "1", out obj); dtplan.Columns.Add("ZDY", System.Type.GetType("System.String"), "''+KHXM+' - '+RQ+''"); DropDownListPlanList.DataSource = dtplan; DropDownListPlanList.DataValueField = "GRRJHBH"; DropDownListPlanList.DataTextField = "ZDY"; DropDownListPlanList.DataBind();


原创粉丝点击