>thnx all for your help, i have made the node with the help of cetins example. Starting with a dbf of 1600000 records in combination of other files i managed to make one cursor that contains all info i need to build my treeview. my final cursor contains 66130 records. Building the cursor takes the pc max 10 seconds. putting the info 66130 records takes me 50 seconds.
>
>this is my code :
>
>SCAN
> IF empty(mercedes_treeview.parentID)
> .Nodes.add(,tvwFirst,alltrim(mercedes_treeview.nodeID),ALLTRIM(mercedes_treeview.nodeText))
> ELSE
> .Nodes.add(alltrim(mercedes_treeview.parentID),tvwChild,alltrim(mercedes_treeview.nodeID),ALLTRIM(mercedes_treeview.nodeText))
> ENDIF
>ENDSCAN
>
>Does somebody knows how i can speed up the building of the treeview ?
>
>thnx
Sorry to repeat it, but you can use regular grid to show the cursor in 'treeview' form, so most likely you will save 50 sec, though you will spend some time writing code.
Edward Pikman
Independent Consultant