Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Treeview control
Message
Information générale
Forum:
Visual Basic
Catégorie:
Contrôles ActiveX
Divers
Thread ID:
00527895
Message ID:
00531425
Vues:
15
Hi!

We usualy populate the tree on demand. This means that we do not populate child nodes in tree until parent node is expanded. We add only one empty node instead to show the + sign for exanding. When user expands node, we remove that empty node and add child nodes. Usually child nodes are from the query. Above approach works well only when you have very good splitting of your data in tree to parent/child nodes (well-categorized data), so you will not have much child nodes for each parent/ For example, list of offices -> list of warehouses for office -> list of choises of information for each warehouse (employees, items, invoices etc. etc.) -> list of invoices -> list of items in invoice (each '->' represent parent-child relationship in tree). No need to fill te tree with all information. Just fill on demand - usually most information will still not be viewed by user.

HTH.

>Hello,
>Im using a treeview control as part of the user interface of my app;
>i noticed a few things with it, when i check/uncheck any node, the whole tree refreshes and its pretty slow most specially when there are lots of nodes in it,
>is there any way around this? subclassing?
>
>thanx,
>Benj
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform