Hello i have a treeView control with checkboxes:
checkbox LEVEL1
checkbox Child1
checkbox Child2
checkbox LEVEL2
checkbox Child1
I shloul not allow checking and unchecking of Child2 of Level 1 and Child 1 of Level 2?
is that possible in a tree View control?
The problem is, that a TreeNode doesn’t have a Enabled state nor any event you can ask. So to emulate the Enabled state you could use the Tag property and save a boolean value there when you create each node.
Then you add an event to the TreeView.BeforeCheck and implement in some kind of this: