dev combobox editオプションを空にするにはどうすればいいですか?
1730 ワード
dev combobox editオプションを空にするにはどうすればいいですか?
機能要件:
combobox edit 1のオプションAをクリックすると、combox edit 2にオプションaが表示されます.
次に、combox edit 1のオプションBをクリックして、combox edit 2にオプションbが表示されます.
コードは次のとおりです.
機能要件:
combobox edit 1のオプションAをクリックすると、combox edit 2にオプションaが表示されます.
次に、combox edit 1のオプションBをクリックして、combox edit 2にオプション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;
}
}