My web page contains a treeview.
when the user select a node, how can I reset the selection to nothing
i.e, making that no node is selected.
thnx in advance.
My web page contains a treeview.
when the user select a node, how can I reset the selection to nothing
i.e, making that no node is selected.
thnx in advance.
Jump to Postthis is off the top of my head so it may not be 100% accurate but what i remember is:
you can loop through the treeview.selectednodes property and set node.isSelected = false
i can't remember if you need to manually call the selectednodechanged event after that.hth
Hi I think this may help:
TreeView1.SelectedNode.Selected = false;
I found this here:http://www.netnewsgroups.net/group/microsoft.public.dotnet.framework.aspnet/topic25282.aspx
this is off the top of my head so it may not be 100% accurate but what i remember is:
you can loop through the treeview.selectednodes property and set node.isSelected = false
i can't remember if you need to manually call the selectednodechanged event after that.
hth
Lol Nicod great minds think alike!
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.