简体   繁体   English

如何在devexpress树状列表中启用展开按钮

[英]Howto enable the expand button in a devexpress Treelist

I have a winforms form with a DevExpress TreeList on it. 我有一个带有DevExpress TreeList的winforms表单。 The Treelist is drawn as expected. 树列表按预期绘制。 But the indicator known as "expand button" is missing. 但是缺少称为“展开按钮”的指示器。

According to the DevExpress Manual the button could be disabled with 根据《 DevExpress手册》,可以使用

OptionsView.ShowButtons = false; 

However the TreeList.OptionView.ShowButton value is true. 但是TreeList.OptionView.ShowButton的值为true。

(It is true during debugging, also no change if I explicitly set it to false and then again to true during initialization) (在调试过程中为true,如果我将其显式设置为false,然后在初始化期间再次设置为true,也将保持不变)

Which settings can be done so that the "expand button" disappears other then ShowButtons = false? 可以进行哪些设置,以使除ShowButtons = false之外的“扩展按钮”消失?

尝试使根可见:

treeList1.OptionsView.ShowRoot = true;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM