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;         
            }       
        }
原文地址:https://www.cnblogs.com/tirmer/p/4277040.html