AFAIK, the Sorted property of the Treeview only sorts alphabetically, so you
will have to set it to false and sort the treenodes in an array (Array.Sort)
before adding them to the treeview, providing an IComparer that uses the Tag
property of the treenodes.
--
Best regards,
Carlos J. Quintero
MZ-Tools: Productivity add-ins for Visual Studio
You can code, design and document much faster:
http://www.mztools.com
"Sam" <sa*************@googlemail.com> escribió en el mensaje
news:11**********************@f14g2000cwb.googlegr oups.com...
Hi,
How can I sort the root nodes of a treeview according to a integer
stored in their tag property? I want to do that at run time on a
button's click event.
Thank you