User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 425,972 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 1,679 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 250 | Replies: 3
Reply
Join Date: Feb 2008
Posts: 35
Reputation: brightline is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
brightline brightline is offline Offline
Light Poster

TreeView Node Selection Problem

  #1  
May 7th, 2008
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.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Oct 2007
Location: Bristol, UK
Posts: 1,124
Reputation: majestic0110 is on a distinguished road 
Rep Power: 3
Solved Threads: 47
majestic0110's Avatar
majestic0110 majestic0110 is offline Offline
Veteran Poster

Re: TreeView Node Selection Problem

  #2  
May 7th, 2008
Hi I think this may help:

TreeView1.SelectedNode.Selected = false;

I found this here:http://www.netnewsgroups.net/group/m...opic25282.aspx
If you have a quality, be proud of it and let it define you. Add it to the world!
If you got your answer, please mark the thread as Solved. It saves time when people are looking to contribute threads or for answers!
Reply With Quote  
Join Date: May 2008
Posts: 1
Reputation: nicod is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
nicod nicod is offline Offline
Newbie Poster

Re: TreeView Node Selection Problem

  #3  
May 7th, 2008
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
Reply With Quote  
Join Date: Oct 2007
Location: Bristol, UK
Posts: 1,124
Reputation: majestic0110 is on a distinguished road 
Rep Power: 3
Solved Threads: 47
majestic0110's Avatar
majestic0110 majestic0110 is offline Offline
Veteran Poster

Re: TreeView Node Selection Problem

  #4  
May 7th, 2008
Lol Nicod great minds think alike!
If you have a quality, be proud of it and let it define you. Add it to the world!
If you got your answer, please mark the thread as Solved. It saves time when people are looking to contribute threads or for answers!
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb ASP.NET Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Other Threads in the ASP.NET Forum

All times are GMT -4. The time now is 11:07 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC