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
 

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
Which control is producing the ContextMenuStrip 2

Back
Top