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.

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

commented: GMTA +2

Lol Nicod great minds think alike!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.