0
我想提出一個Windows應用程序,我有一個組合框,讓用戶輸入文字,並且當從autocomplete
列表中沒有選擇的ID用戶選擇文本如何獲取的識別碼組合框下拉
我的代碼:
Customer.DropDownStyle = ComboBoxStyle.DropDown;
DataTable dt = Globale.ReturnTable("SELECT Id, [NAME] FROM ACTM WHERE (DBCR = 'D') ORDER BY [NAME]");
Customer.DataSource = dt;
Customer.ValueMember = "Id";
Customer.DisplayMember = "Name";
Customer.AutoCompleteMode = AutoCompleteMode.Suggest;
Customer.AutoCompleteSource = AutoCompleteSource.ListItems;
Customer.SelectedIndex = -1;
我需要從名稱ID從ComboBoxStyle.DropDown不dropdowlist