F
frostbb
I have a C# WinForms treeview with 20 or so 'level 0' nodes.
My users will normally have 2 of the 'level 0' branches open down to a '5th
level' selected node.
The users will make updates to the 2 selected nodes that will alter the node
name.
I think I need to rebuild the TreeView to get everything synchronized after
they click an update button.
Is there an example somewhere that shows how to recreate and re-expand level
0 branches of the TreeView state after the Tree has been rebuilt?
Put another way ... At the time the user commits an update the Level 0 nodes
5 and 18 are open 'down' to a pair of selected 5th level nodes. One node per
branch. All the other level 0 nodes are collapsed.
How do I rebuild the treeview and open the 5 and 18 level 0 nodes down to
the 5th level and reselect the 5th level nodes that the users had
previously selected and updated ?? I can save the names of the previously
selected and updated nodes. I'm just unsure of how to selectively expand
the 5 and 18 level 0 branches down to the 5th level and reselect the target
nodes.
Any help would be GREATLY appreciated.
Thanks in advance.
Barry in Oregon
My users will normally have 2 of the 'level 0' branches open down to a '5th
level' selected node.
The users will make updates to the 2 selected nodes that will alter the node
name.
I think I need to rebuild the TreeView to get everything synchronized after
they click an update button.
Is there an example somewhere that shows how to recreate and re-expand level
0 branches of the TreeView state after the Tree has been rebuilt?
Put another way ... At the time the user commits an update the Level 0 nodes
5 and 18 are open 'down' to a pair of selected 5th level nodes. One node per
branch. All the other level 0 nodes are collapsed.
How do I rebuild the treeview and open the 5 and 18 level 0 nodes down to
the 5th level and reselect the 5th level nodes that the users had
previously selected and updated ?? I can save the names of the previously
selected and updated nodes. I'm just unsure of how to selectively expand
the 5 and 18 level 0 branches down to the 5th level and reselect the target
nodes.
Any help would be GREATLY appreciated.
Thanks in advance.
Barry in Oregon