Empty extensible treenode in c #

I want to create an extensible empty treenode in C #, i.e. treenode that is empty and has a [+] sign next to it. The reason is that it is initially empty, but after clicking node I want to fill it with a lot of child nodes.

The only problem I encountered is that empty treenodes are not extensible, so I don’t know what to do. Is there a way to solve this problem or are there any workarounds?

+1
source share
3 answers

You need to redraw the tree or create an empty node and just delete it when the parent node expands.

b). , , TreeView, . node , "...", .:)

+3

node .

+2

Check out Josh Smiths' excellent tree structure tutorial . This allows lazy loading of nodes of the child tree using a dummy node, which is removed during the extension.

+1
source

All Articles