I need to sort a TreeView control based on one of two selected user options. The problem is, that the Text property of my TreeView nodes is set to a string that is actually a cocatenation of two database fields. For example, I am retrieving the followng values from my database: UserID, UserName, and displaying them in my TreeView like this: UserID - UserName.
I need to be able to sort by either of these fields.
I have looked at the TreeViewNodeSorter property, but haven't been able to figure out how to 'tweak' it to meet my needs.
Has anyone here done something similar?