DevExpress的LookUpEdit怎样不显示列名


场景

DevExpress的下拉框控件LookUpEdit的使用、添加item选项值、修改默认显示值:

https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/102464577

参照上面实现的LookUpEdit实现的效果为

 

 

除了要显示的选项外,还有一个列名Column显示。

注:

博客主页:
https://blog.csdn.net/badao_liumang_qizhi
关注公众号
霸道的程序猿
获取编程相关电子书、教程推送与免费下载

实现

怎样设置不让此列名显示

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;

 

去掉列名后

 

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM