treeview refresh

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a tree with many forms behind it. You can click on a detail button
and then go to the detail to update information, delete, etc. What is the
best way to refresh the treeview after changes are made? I need to refresh
the data and also eleminate / add nodes. Right now I can do it by erasing
and then recreating which works good. The only problem is that some nodes
are expanded while others are not and you lose that. Any suggestions? Since
I have one many to many relationship in the tree the keys may change.

Thanks,
Dave
 
You can use the treeview's .Nodes.Add or Nodes.Remove methods to add or
remove nodes as you change things in other forms (with the appropriate
FormName.TreeViewname to refer to the control).

If you want to learn lots about Treeview controls, I recommend Alex
Dybenko's sample, available from
http://www.pointltd.com/Downloads/Details.asp?dlID=36

HTH,

Rob
 
Back
Top