当前位置: 移动技术网 > IT编程>开发语言>c# > DevExpress的LookUpEdit怎样不显示列名

DevExpress的LookUpEdit怎样不显示列名

2019年12月18日  | 移动技术网IT编程  | 我要评论

场景

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;

 

去掉列名后

 

 

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网