Click here to Skip to main content
15,886,258 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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
Posted
Comments
CPallini 20-Jun-11 9:18am    
You should post your code. We may help you to fix it.
Sergey Alexandrovich Kryukov 20-Jun-11 22:30pm    
Always tag it: WPF, Forms, APS.NET, what?!
--SA

1 solution

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/[^]
 
Share this answer
 
Comments
Al-Samman Mahmoud 20-Jun-11 15:17pm    
thank u sir for ur concern but is there any another solution?
OriginalGriff 20-Jun-11 15:21pm    
There are - google will find them for you - but they are more complex, not less! That one is the easy one...
Sergey Alexandrovich Kryukov 20-Jun-11 22:29pm    
Nice article and pretty easy solution (Form only), my 5.
--SA
Al-Samman Mahmoud 21-Jun-11 4:05am    
thank u OriginalGriff for ur concern and ur Answer.
OriginalGriff 21-Jun-11 4:15am    
You're welcome!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900