How to select a Sub node in treeview?
In wrote following code to store the Selected node for further use.
I wrote this code to select the desigred node but it shoudn’t work.
While tracing ‘SelectedNode.Fullpath’ shows “RootNode\SubNode” but in ‘TreeView.SelectedNode.Fullpath’ it shows only “RootNode”. And so only the root node will get selects and expands.
I want to know why this happends and how to select the subnode exactly.
In wrote following code to store the Selected node for further use.
VB.NET:
Dim SelectedNode As TreeNode= TreeView.SelectedNode
I wrote this code to select the desigred node but it shoudn’t work.
VB.NET:
TreeView.SelectedNode = SelectedNode
TreeView.Select()
TreeView.SelectedNode.Expand()
While tracing ‘SelectedNode.Fullpath’ shows “RootNode\SubNode” but in ‘TreeView.SelectedNode.Fullpath’ it shows only “RootNode”. And so only the root node will get selects and expands.
I want to know why this happends and how to select the subnode exactly.