combox绑定后添加自定义列

DataTable dt = shUBll.FindAllByWhere("");
            DataRow dr = dt.NewRow();
            dr["SUID"] = "0";
            dr["SUName"] = "添加单位参数";
            dt.Rows.InsertAt(dr,0);
            this.cbx_DW.DataSource = dt;
            this.cbx_DW.ValueMember = "SUID";
            this.cbx_DW.DisplayMember = "SUName";

 

posted @ 2015-02-02 16:51  临冰听雪丶  阅读(267)  评论(0编辑  收藏  举报