Winform控件-DevExpress18下載安裝註冊以及在VS中使用:編程
https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/100061243spa
DevExpress的下拉框控件LookUpEdit的使用、添加item選項值、修改默認顯示值:.net
https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/102464577code
注:orm
博客主頁:
https://blog.csdn.net/badao_liumang_qizhi
關注公衆號
霸道的程序猿
獲取編程相關電子書、教程推送與免費下載。對象
DevExpress.XtraEditors.ComboBoxEditblog
聲明下拉框對象教程
DevExpress.XtraEditors.ComboBoxEdit comboBox = new DevExpress.XtraEditors.ComboBoxEdit();
獲取下拉選項items對象get
ComboBoxItemCollection coll = comboBox.Properties.Items;
下拉框賦值博客
foreach(ControlModelItem controlModelItem in controlModelItems) { coll.Add(controlModelItem); }
設置選中項
comboBox.SelectedItem
comboBox.SelectedIndex
效果