Re: refreshing a treeview

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





Sam wrote:
> You should be able to determine which node was just
> added/edited
>
> > how ?

We can't tell you that. Presumably, when the user enters new data and
commits that change, you save data to an underlying data store? Then
you say you rebuild the tree from that data store - well, while you are
doing this, it should be possible to know when you are creating the
node that corresponds to the data the user just entered. Keep a
reference to that node, then when you have finished rebuilding the
tree, you only need do

newNode.EnsureVisible

Are you sure you need to completely rebuild the tree every time data is
entered?

--
Larry Lard
Replies to group please

.



Relevant Pages

  • Re: Re: Re: Re: Re: [ANNOUNCE] git-pasky-0.1
    ... >> need to construct arbitrary commits during the rebuild if I'm to keep ... When rebuilding the tree from scratch, I wanted like to do it ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Re: Is it possible to select a single driver to build from source
    ... project are under the public\common tree, can I use this method to rebuild ... just those or would I need to rebuild everything whenever something under the ... "Steve Maillet " wrote: ... > smaillet at EmbeddedFusion dot com ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Refresh a TreeView
    ... > I implemented a TreeView to my Bill Of Materials using the code sample in ... > I created a button to refresh the tree because in the form a user can add ... > How do I clear the TreeView object to rebuild it? ...
    (microsoft.public.access.formscoding)