您当前的位置: 首页 > 

[DevExpress]控件-checkboxlist之运用

发布时间:2016-04-11 10:39:28 ,浏览量:0

数据绑定:

string strSql = "SELECT [UserName],[Mail] FROM [OA].[dbo].[DZ_Users]";
            DataTable dt = new DataTable();
            dt = DbHelperSQL.Query(strSql.ToString()).Tables[0];


            chklboxL.DataSource = dt;
            chklboxL.DisplayMember = "UserName";
            chklboxL.ValueMember = "Mail";


            this.checkedComboBoxEdit1.Properties.DataSource = dt;
            this.checkedComboBoxEdit1.Properties.DisplayMember = "UserName";
            this.checkedComboBoxEdit1.Properties.ValueMember = "Mail";

            checkedComboBoxEdit1.EditValue = "test1@zettlercn.com,test2@zettlercn.com";     //默认值
获取:
string mail = string.Empty;
            DataRowView value = chklboxL.SelectedValue as DataRowView;
关注
打赏
1688896170
查看更多评论

暂无认证

  • 0浏览

    0关注

    105934博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文
立即登录/注册

微信扫码登录

0.0460s