Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何填充组合框值,当文本框填充了某个值或当我将 IMEI no 放在文本框上时,它会根据其相关字段填充组合框。
我试过这个
cmbSupplierName.DataSource = t.Tables[0]; cmbSupplierName.DisplayMember = "SupplierName"; cmbSupplierName.SelectedIndex = -1;
取决于您使用的是什么( Windows 窗体或WPF),请阅读有关数据绑定的信息。通常,您必须为此数据实现一个单独的类,并将其项目的集合绑定到Comboboxes
Combobox