【发布时间】:2011-05-13 17:55:18
【问题描述】:
我正在使用 treelist.OptionsView.ShowCheckBoxes = true;但这会在所有节点上显示复选框。我只希望子节点显示 CheckBox 而不是父节点。有什么方法可以实现吗?
【问题讨论】:
标签: c# devexpress xtratreelist
我正在使用 treelist.OptionsView.ShowCheckBoxes = true;但这会在所有节点上显示复选框。我只希望子节点显示 CheckBox 而不是父节点。有什么方法可以实现吗?
【问题讨论】:
标签: c# devexpress xtratreelist
这可以通过使用 CustomDrawNodeCheckBox 事件来完成。 Hiding parent node checkboxes in new treelist checkbox feature 展示了如何实现这一点。
【讨论】:
我认为这是不可能的。但是您可以使用 CustomDrawCaption 事件来隐藏您不想显示的节点上的复选框。
【讨论】: