Treeview Control

L

Luis

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
 
A

Alex Dybenko

Hi,
yes, you can use Sort method, which sort all children nodes of node you run
method
 
L

Luis

And what is the syntax of the method. I've been looking and i didn't seem to
find this method.
 
A

Alex Dybenko

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
 
Top