Treeview Control

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have programmatically created a tree using a treeview control.
The problem is that the source for that tree isn't sorted. Is there any
method to sort the tree instead of sorting the table or query that i use as
the source of the tree?

Thanks

Luis
 
Hi,
yes, you can use Sort method, which sort all children nodes of node you run
method
 
And what is the syntax of the method. I've been looking and i didn't seem to
find this method.
 
sorry, this is actually a property Sorted:

so if you have an object Node, then to sort it children you have to set:

Node.Sorted = True
 
Back
Top