views:

16

answers:

1

How can I sort a WinForms TreeView by using the nodes' keys, rather than by their names?

+1  A: 

You can sort it any way you like with the TreeView.TreeViewNodeSorter property. There's a good example in the MSDN Library article for it.

Hans Passant