Hey there,
I seem to be at heads with a bit of a speed problem with the treeview control. I have a sturcture recived from an API which is basically
The structre is made up of about 2200 items onthis particully repositry. And the filling routine is a very fast resurive some - but it takes a collection of treeview because 5 have to be filled at once.Code:ROOT NODE - Parent - Child - Child - Child - Child - Child - Child - Parent
I have removed all sorting on load from the control - and all new nodes created - in favor of a "at end sort" like this.
VB Code:
Public Sub SortTree(colTree As Collection) Dim TreeV As TreeView Dim TNode As MSComctlLib.Node For Each TreeV In colTree For Each TNode In TreeV.Nodes If TNode.Children > 1 Then TNode.Sorted = True End If Next Next End Sub
The problem is when loading - it files up to about 1000 nodes bout 1000-2000 nodes it seems to crawl and get progessivly slower. So is there any tips for overcomthing this - or is the treeview control not made for this load?




Reply With Quote