Re: TreeView

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



I have thought of the dummy node the get + appear its good trick
I was wondering if there is more .Net like way to do it.

and the number of the child nodes may vary so the better idea is
the virtual tree since there are still chances that the number of child
nodes of some nodes be around 40,000 or more but the total can be even more
than 1,000,000
of course having 1,000,000 as a child of root node is impractical but not
impossible

AND Most importantly the link brings up the "Page Can not be displayed"
i don know if anything went wrong or just the link is broken?!

<grant@xxxxxxxxxxxxxxx> wrote in message
news:1155951051.412420.153840@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Leon_Amirreza wrote:
I need to show more that 1,000,000 nodes in a .Net forms tree view
control
i dont think its a good idea to load the whole data at once in the tree
view
of course the data is load a from xml stream the load time is very fast
but
dumping it onto the treeview dosent sound well
any better idea?!?!

You can add a dummy child TreeNode for each folder node that you add -
this will ensure that the + symbol is displayed. Then you can trap
the expand event, delete the dummy node and add the real child nodes.

This will only improve performance if you don't have a large number of
nodes under any one given node. If you have this sort of scenario
then you should take a look at Infralution's Virtual Tree. This is a
data driven control which is built from the ground up to only load the
data required to display the current tree display. If you have
1,000,000 nodes on one level (eg under the root) it will still only
load the 30 or so required to display the current tree view - resulting
in almost instantaneous loading and minimal memory overhead. You can
get more information and download an evaluation version from:

www.infralution.com/virtualtree.html

Regards
Grant Frisken
Infralution

i thought maybe to use treeview the way windows explorer (when you click
+
sign beside a node that is actually a folder; the contents are read and
added to the treeview) but i dont how to get the tree view somthing like
that (of course i dont expect to accoplish it by changing a property
value
or writting 1 or 2 line of code)
i dont have any idea what to do?
any helper class in .Net? appropriate event handler? any kind of data
binding to the tree view ? or ....



.



Relevant Pages

  • Re: TreeView
    ... of course the data is load a from xml stream the load time is very fast but dumping it onto the treeview dosent sound well ... i thought maybe to use treeview the way windows explorer but i dont how to get the tree view somthing like that ...
    (microsoft.public.dotnet.framework)
  • TreeView
    ... I need to show more that 1,000,000 nodes in a .Net forms tree view control ... i dont think its a good idea to load the whole data at once in the tree view ... i thought maybe to use treeview the way windows explorer (when you click + ...
    (microsoft.public.dotnet.framework)
  • Re: TreeView
    ... the virtual tree since there are still chances that the number of child ... i dont think its a good idea to load the whole data at once in the tree ... data required to display the current tree display. ... added to the treeview) but i dont how to get the tree view somthing like ...
    (microsoft.public.dotnet.framework)
  • Re: TreeView
    ... i dont think its a good idea to load the whole data at once in the tree view ... then you should take a look at Infralution's Virtual Tree. ... data required to display the current tree display. ...
    (microsoft.public.dotnet.framework)
  • Re: why learn C?
    ... even if the problem is only how to display "Hello World!" ... For instance if you go to my website you will find code to load a tree in Newick format. ... Though the format was devised for phylogenetic trees, in fact it can be used to save virtually any tree. ...
    (comp.lang.c)