DevExpress的下拉框控件LookUpEdit的使用、添加item選項值、修改默認顯示值:編程
https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/102464577spa
參照上面實現的LookUpEdit實現的效果爲.net
除了要顯示的選項外,還有一個列名Column顯示。code
注:blog
博客主頁:
https://blog.csdn.net/badao_liumang_qizhi
關注公衆號
霸道的程序猿
獲取編程相關電子書、教程推送與免費下載教程
怎樣設置不讓此列名顯示get
LookUpEdit typeSelect = new LookUpEdit(); typeSelect.Properties.ShowHeader = false;
完整示例代碼博客
LookUpEdit typeSelect = new LookUpEdit(); typeSelect.Properties.ShowHeader = false; typeSelect.Width = Global.CHART_OPTION_WIDTH; typeSelect.Name = "typeSelectY" + yList[i].No; typeSelect.Location = new Point(100, 100); List<string> list = new List<string>(); list.Add("折線"); list.Add("點折線"); list.Add("點離散"); typeSelect.Properties.DataSource = list; typeSelect.Properties.NullText = yList[i].Type;
去掉列名後string