我的TreeView有问题吗? [英] My TreeView Problem?
本文介绍了我的TreeView有问题吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想以编程方式生成treeView节点,但是主要的问题是我需要将特定项目组合到小盒子中,但是当我尝试面对该节点及其所有项目时,它们都将具有不需要的小盒子.最后,我需要将特定项目分配给可以导入其检查状态的复选框.
附言:请结合答案和简单的代码或步骤
谢谢您的关心.
I Want To Generate A treeView Nodes Programaticaly but the main problem that i need to combine specific items to chickboxes but when i tried that i faced that the node and it''s all items will have chickboxes which is not required. finally i need to assign specific items to checkboxes which i can import it''s check state.
P.S:please combine answer with simple code or steps
thank u for ur concern
推荐答案
不幸的是,没有简单的代码或步骤"-标准的TreeView仅允许基于整个树的复选框.因此,每个子节点都有一个复选框,或者没有.
有一个解决方法(实际上有几个,但这是我见过的最整洁的方法之一) ^ ]
Unfortunately, there is no "simple code or steps" - the standard TreeView only allows for Checkboxes on a entire-tree basis. So either every child node has a checkbox or none do.
There is a way round this (there are a couple of them in fact, but this is one of the neatest I''ve met) http://dotnetfollower.com/wordpress/2011/05/winforms-treeview-hide-checkbox-of-treenode/[^]
这篇关于我的TreeView有问题吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文