How to programmatically select a Node in a TreeViewAdv control
In TreeViewAdv, Node can be selected programmatically using SelectedNode property.
//Here selecting the first node under node 1. this.treeViewAdv1.SelectedNode = this.treeViewAdv1.Nodes; // HideSelection is used to ensure that the node remains selected, even when the TreeViewAdv control does not have focus. this.treeViewAdv1.HideSelection = false;
'SelectedNode indicates the selected node of the TreeViewAdv. Select the first node under node 1. Me.treeViewAdv1.SelectedNode = Me.treeViewAdv1.Nodes(1) ' HideSelection is used to ensure that the node remains selected, even when the TreeViewAdv control loses focus or does not have focus. Me.treeViewAdv1.HideSelection = false
Was this page helpful? Yes No
Thank you for your feedback!
Thank you for your feedback and comments. We will rectify this as soon as possible!
An unknown error has occurred. Please try again.
Help us improve this page