DRLDev

April 8, 2008

Tip: How to get a TreeView to sort the nodes automatically

Filed under: VS2005 and VB.NET — Dave @ 1:41 pm

You have to do this before using the TreeView for anything, e.g. in the Form_Load event. Once done the TreeView will maintain the sort order automatically with very little overhead.


myTreeView.TreeViewNodeSorter = Nothing
myTreeView.Sort()

Older Posts »

Powered by WordPress