将treeList.OptionsView.ShowCheckBoxes设置为True,树形结构前就会出现CheckBox选择框,如果您想达到选择父节点,子节点也同时选中的效果,需将treeList.OptionsBehavior.AllowRecursiveNodeChecking设置为True。
TreeList CheckBox 父子节点联动
最新推荐文章于 2024-05-07 13:49:54 发布
本文介绍如何在树形列表中实现CheckBox的选择同步功能。通过设置treeList.OptionsView.ShowCheckBoxes为True显示CheckBox,并使用treeList.OptionsBehavior.AllowRecursiveNodeChecking为True确保父节点选中时子节点也被选中。

699





