Link to home
Start Free TrialLog in
Avatar of Torrwin
TorrwinFlag for United States of America

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
Avatar of Jaime Olivares
Jaime Olivares
Flag of Peru image

>>Currently they define the nodes on one screen and when they close it, the treeview refreshes.
That means you fill the tree again?
If so, why to fill instead of adding the new node?
Avatar of Jorge Paulino
This is WinForms or ASP.NET ?
Avatar of Torrwin

ASKER

This is a windows application, and they could also have edited the data or deleted records.
ASKER CERTIFIED SOLUTION
Avatar of Jaime Olivares
Jaime Olivares
Flag of Peru image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Sorry, I have provided a C# solution, please tell me if you need the translation to vb.net