Link to home
Start Free TrialLog in
Avatar of Jezuit
Jezuit

asked on

TreeView Control - Alphabetically sorting child objects

The way my TreeView control is set up, there is not information in all of the root nodes at all times, but only when the user expands it does it actually put the information there.

Is there a way, after I've already added the different child objects to the root node, to then alphabetically sort those objects? The root nodes are already alphabetically sorted, but the child objects are exactly the way I put them in programatically.

The TreeView control has the sorted property set to True.

Thanks for any help.
ASKER CERTIFIED SOLUTION
Avatar of TitoBob
TitoBob
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
So at the same time that you populate the child objects of any given node, set the given node's Sorted property to True (after population).
amdg