Hello David,
thank's for your fast answer and sory for my time delay to answer. Your code exactly solve my problem and work fine. From a performance view, i don't like to catch the Initialize-Event; but it seems to be the right place to change the display style.
Some questions to your code:
Do i need the variable 'checkbox' ? It's never used.
Is the recursive code faster then an iterative version ( may be in a reverse fashion; i traverse the tree with no checkboxes, if the actual node got a childCount of 0, this is a leaf, so set the checkbox. If not go to the next node.)?
Is there a way to use Node-Templating (but how to trigger a node and a leaf)?
Again, thank's for your solution
regards,
Patric