Re: treeview refresh

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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


"dave k" <davek@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:EC17B323-9FAD-4BCB-A045-EBC26635AEEE@xxxxxxxxxxxxxxxx
> 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
>


.



Relevant Pages

  • Re: automatic refreshing of JTree not working
    ... I'm having a hell of a time trying to get a JTree to automatically refresh to show that a node has been moved from one parent node to another. ... I tried the reloadmethod of the tree model and of course when I do that the entire tree collapses and that isn't what I want method useful). ... And *that* issue is due to how JNDI sends search requests to a server. ... I thought if I go back to simplifying my code to make the JTree update itself then I wouldn't even have to go back to my data source, at least for refreshing the node that had one of its children removed. ...
    (comp.lang.java.gui)
  • HList example using Entry, Label, and virtual Checkbuttons (part II)
    ... I always wanted my Tree to have widgets ... (callback function that refresh the gui:) ...
    (comp.lang.perl.tk)
  • Re: Treeview events
    ... I won't load the entire tree at beginning too, ... If you insist on relying on user input to decide when to refresh, ... One final option, if you insist on this redundant behavior, is to handle   ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Fragile Fences
    ... >as warnings/errors/whatever in the compile tree until you refresh. ... you are treating the flat files as the ... However, in either case, the copy that counts for Eclipse is its ...
    (comp.lang.java.programmer)
  • Re: how to capture which Tree node is clicked and its ID in client side javascript
    ... I am using TreeView controls of Microsoft.Web.UI.WebControls. ... I want to capture which Tree Node is clicked and its ID in client Side ... > Can you post the original question? ... > Got tidbits? ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)