Click here to Skip to main content
16,009,847 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello you all.

next

what faster way to Fill treelist by data


note: data from access database
7,000,000 feilds
:confused:

and thanks
Posted
Updated 25-Feb-10 20:50pm
v2

The only way to speed up building a treeview is to build it dynamically. For instance, you don't need to load the children nodes if you are starting out with everything collapsed. Then, when something is expanded, go back to access and get the children and fill them in.

You may have a slight delay when opening a node, but not like loading everything all at once...especially since with 7,000,000 records, the likelihood of anyone looking at all of them is probably around 0%.
 
Share this answer
 
It may depend on the speed (method) of data reading... :)
 
Share this answer
 
Thank you.

In fact I now that.

But I cant fill 7,000,000 record by this way


TreeList1.Items.add !FeilsName


Look.
When We use Dataset with datasource we can get faster way to fill a ListBox for example

but by loop will lost more time

Note: I Don't need child node
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900