dev combobox edit 怎么设置让选项清空

dev combobox edit 怎么设置让选项清空

功能需求:

点击combobox edit1的选项A 使得 combobox edit2出现选项a;

然后再点击combobox edit1的选项B 使得combobox edit2出现选项b。

代码如下:

 

//清空客户、料号、物料编码
        private void cbCustomersShort_EditValueChanged(object sender, EventArgs e)
        {            
            if(this.cbCustomers.Text != null )
            {
                cbCustomers.EditValue = null;
                cbCustomers.Properties.Items.Clear();
            }
            if (this.cbObjectID != null)
            {
                cbObjectID.EditValue = null;
                cbObjectID.Properties.Items.Clear();
            }
            if (this.txtCoding != null)
            {
                txtCoding.EditValue = null;         
            }       
        }

 

posted @ 2015-02-06 14:12  韭菜笔记本  阅读(1028)  评论(0编辑  收藏  举报