Torrwin
asked on
Automatically Expand Treeview After Refresh
Hello,
I have a basic treeview which I would like the user to have the ability to add nodes to in real time. Currently they define the nodes on one screen and when they close it, the treeview refreshes. However, I would like to appear to the user as if the node was placed there in real time. The problem is that when I refresh the treeview, all of their expanded nodes disappear.
Does anyone have a quick and easy way to store which nodes are expanded and then re-expand them (taking into account that there will now be one extra node)?
Thanks,
-Torrwin
I have a basic treeview which I would like the user to have the ability to add nodes to in real time. Currently they define the nodes on one screen and when they close it, the treeview refreshes. However, I would like to appear to the user as if the node was placed there in real time. The problem is that when I refresh the treeview, all of their expanded nodes disappear.
Does anyone have a quick and easy way to store which nodes are expanded and then re-expand them (taking into account that there will now be one extra node)?
Thanks,
-Torrwin
This is WinForms or ASP.NET ?
ASKER
This is a windows application, and they could also have edited the data or deleted records.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Sorry, I have provided a C# solution, please tell me if you need the translation to vb.net
That means you fill the tree again?
If so, why to fill instead of adding the new node?