Treeview loading slow.

  • Thread starter Thread starter Mufasa
  • Start date Start date
M

Mufasa

I have an explorer type app that when I need to update the tree, it takes
about 30 seconds. This is a bit annoying. Is there any way to speed up the
treeview ?
 
Mufasa said:
I have an explorer type app that when I need to update the tree, it takes
about 30 seconds. This is a bit annoying. Is there any way to speed up the
treeview ?

Only add dummy items to collapsed nodes containing more than one sub item
when initializing and add the nodes upon expansion of the nodes.
 
Make sure you call BeginUpdate before adding large number of nodes and
EndUpdate afterwards.

---------
- G Himangi, Sky Software http://www.ssware.com
Shell MegaPack : GUI Controls For Drop-In Windows Explorer like Shell
Browsing Functionality For Your App (.Net & ActiveX Editions).
EZNamespaceExtensions.Net : Develop namespace extensions rapidly in .Net
EZShellExtensions.Net : Develop all shell extensions,explorer bars and BHOs
rapidly in .Net
 
I have an explorer type app that when I need to update the tree, it takes
about 30 seconds. This is a bit annoying. Is there any way to speed up the
treeview ?

You might want to take a look at Infralution's Virtual Tree. It is
optimized for handling very large data sources and (unlike the
standard treeview) only creates user interface items for the rows that
are currently displayed. This gives it a much smaller memory
footprint and almost instantaneous load times. You can get more
information and download an evaluation version from:

www.infralution.com/virtualtree.html
 
Back
Top