1、 給checkedListBoxControl綁定數據源:
checkedListBoxControl.DataSource = listRole;
checkedListBoxControl.DisplayMember = "roleName";
checkedListBoxControl.ValueMember = "ID";
2、打鈎checkedListBoxControl控件里的某一項:
checkedListBoxControlRole.SetItemChecked(i, true); //i是控件的索引值
3、獲取checkedListBoxControl控件里某一項的ValueMember值
checkedListBoxControlRole.GetItemValue(i).ToString();//i是控件的索引值
4、實現checkedListBoxControl控件點擊一次就可以選中復選框,設置CheckOnClick屬性為true,即可。