Treeview Control
-
I want to have a tree node selected when the page loads. I have the number or ID or value of the node when the page loads. how do i achieve this? please help.
Hi. first you have to find the node: TreeView.Nodes.Find Then select it: TreeView.SelectedNode = And you can do other stuff: TreeNode.Expand(); TreeNode.EnsureVisible(); Kjetil
-
Hi. first you have to find the node: TreeView.Nodes.Find Then select it: TreeView.SelectedNode = And you can do other stuff: TreeNode.Expand(); TreeNode.EnsureVisible(); Kjetil
-
Hi Kjetil, Thanks a ton. It didn't work. Maybe you are talking about a windows-based TreeView control. I am using the control on a webpage. The TreeView.Nodes.Find function doesnot exist.
-
Hi Kjetil, Thanks a ton. It didn't work. Maybe you are talking about a windows-based TreeView control. I am using the control on a webpage. The TreeView.Nodes.Find function doesnot exist.
Hi Sorry. My mistake. I'm in a big WinForm project, and have "forgotten" all about Web :-) Kjetil