Go to a specified node in treeview
-
I want to set and focus to a specified node in treeview.it means I want to go to specified node in treeview How can I do it ?
Hello Friends
-
I want to set and focus to a specified node in treeview.it means I want to go to specified node in treeview How can I do it ?
Hello Friends
Iterate through your treeview until you find the one you need, then set the treeviews SelectedNode property and call the selectednode's EnsureVisible method.
Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Expect everything to be hard and then enjoy the things that come easy. (code-frog) -
Iterate through your treeview until you find the one you need, then set the treeviews SelectedNode property and call the selectednode's EnsureVisible method.
Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Expect everything to be hard and then enjoy the things that come easy. (code-frog)Simply you can find tree node within treeview using the find method as show below string myNodeName="abc" TreeNode[] node=new TreeNode[1]; node=treeView1.Nodes.Find(myNodeName,true); treeView1.SelectedNode=node[0]; this is simple way how u can find your node within the treeview
Abdul Rahaman Hamidy Senior Student Student in Computer Science Kabul, Afghanistan Software Developer
-
I want to set and focus to a specified node in treeview.it means I want to go to specified node in treeview How can I do it ?
Hello Friends
I HAVE ALREADY ANSWERED THIS. There is no reason to repost it.
Everything makes sense in someone's mind