Setting the currrent selected treeview node
I have a tree view that loads the details of an item into another panel. If those items are edited, and the user selects another tree view item, they are asked if they want to save changes. If they click Cancel, then the original node needs to be reselected. However, the problem is that it appears all of the node selected properties are read-only. Is there a way to set the selected node?
I've tried stuff like...
Code:
tvwSwatches.SelectedNode = tvwSwatches.Nodes(CurrentSwatchNode)
But that throws System.ArgumentOutOfRangeException
Any ideas?