DevExpress的LookUpEdit怎样不显示列名

场景

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

 

 

相关文章
相关标签/搜索