Recreate a >>C# WinForms<< TreeView "state" -after- treeview rebuild ?? Any TreeView GODS out there ??
- From: "frostbb" <frostbb@xxxxxxxxxxxxxxxxx>
- Date: Thu, 14 Aug 2008 17:38:56 -0700
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
.
- Follow-Ups:
- RE: Recreate a >>C# WinForms<< TreeView "state" -after- treeview rebuild ?? Any TreeView GODS out there ??
- From: Zhi-Xin Ye [MSFT]
- Re: Recreate a >>C# WinForms<< TreeView "state" -after- treeview rebuild ?? Any TreeView GODS out there ??
- From: Pavel Minaev
- Re: Recreate a >>C# WinForms<< TreeView "state" -after- treeview rebuild ?? Any TreeView GODS out there ??
- From: Joel Lucsy
- RE: Recreate a >>C# WinForms<< TreeView "state" -after- treeview rebuild ?? Any TreeView GODS out there ??
- Prev by Date: Re: DateTime Format
- Next by Date: Re: Overloaded constructors vs. Object initializations
- Previous by thread: Any Coding Tools or Utilities I Should be Using?
- Next by thread: Re: Recreate a >>C# WinForms<< TreeView "state" -after- treeview rebuild ?? Any TreeView GODS out there ??
- Index(es):