Treeview Control

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
 
A

Alex Dybenko

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

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Rebuilding Treeview 1
Treeview rebuild 1
Adding Child Nodes to Treeview 2
Find in treeview 1
Treeview Control 2
Add Child Node to Treeview 5
Treeview Properties 4
Treeview - Counting childs 4

Top