Treeview loading slow.

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 ?
 
H

Herfried K. Wagner [MVP]

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.
 
G

G Himangi

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
 
G

Grant Frisken

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top