上代码:
public partial class TreeListLookUpEdit : DevExpress.XtraEditors.XtraForm { private string _KeyName; public string KeyName { get { return lblKeyName.Text; } set { lblKeyName.Text = value; } } private string _KeyID; public string KeyID { get { return lblKeyID.Text; } set { lblKeyID.Text= value; } } public TreeListLookUpEdit() { InitializeComponent(); } private void TreeListLookUpEdit_Load(object sender, EventArgs e) { } protected override void OnLoad(EventArgs e) { base.OnLoad(e); if (DesignMode) return; txtRole.Properties.TreeList.OptionsView.ShowCheckBoxes = true; txtRoleBind(); DefaultChecked("3"); GetSelectedRoleIDandName();