So I have the tree view populating as I would like, it nicely displays the complex relationships between my tables, and I can see the relevant info for the node that I want to show. Very cool.
I thought the next step would be straight forward, but now I'm finding it isn't.
So what I would like to do next is have a "Expand All/Collapse All" function (which I can use to expand actually all or just the full branch of some root node, or any nodes below in a branch that I'm in.)
I see there are "Expand" and "Collapse" events, but when I tried a call like:
This.Treeview1.Expand(1) (expecting this would at least "open" the first node in the tree), it didn't...
I tried a few other things but none of them worked. And I can't find a good example that seemed to show how to even open a single node.
So what's the best way to go about this? I did put a button over the top of the tree called "Expand All" (which also switches to "Collapse All once its been pressed), but I've not been able to get the nodes to expand or collapse from within or outside the control. Any suggestions?
Many thanks.
Best Regards,
Scott
ATS, CDCE, CTIA, CTDC
"Everything should be made as simple as possible, and no simpler."
I thought the next step would be straight forward, but now I'm finding it isn't.
So what I would like to do next is have a "Expand All/Collapse All" function (which I can use to expand actually all or just the full branch of some root node, or any nodes below in a branch that I'm in.)
I see there are "Expand" and "Collapse" events, but when I tried a call like:
This.Treeview1.Expand(1) (expecting this would at least "open" the first node in the tree), it didn't...
I tried a few other things but none of them worked. And I can't find a good example that seemed to show how to even open a single node.
So what's the best way to go about this? I did put a button over the top of the tree called "Expand All" (which also switches to "Collapse All once its been pressed), but I've not been able to get the nodes to expand or collapse from within or outside the control. Any suggestions?
Many thanks.
Best Regards,
Scott
ATS, CDCE, CTIA, CTDC
"Everything should be made as simple as possible, and no simpler."