场景DevExpress的下拉框控件LookUpEdit的使用、添加item选项值、修改默认显示值: https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/102464577 参照上面实现的LookUpEdit实现的效果为
除了要显示的选项外,还有一个列名Column显示。 注: 博客主页: 实现怎样设置不让此列名显示 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;
去掉列名后
|
|