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

 //绑定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();


你可能感兴趣的:(.Net 绑定Dropdownlist的时自定义组合字段后显示)