Tree View Node Selection

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Once a treeview node is selected how can I programmatically unselect it so
that it might be selected again following the first selection if the user
desires?
The after selection event only fires when the selection changes.
 
Can't you just do something like

myTreeView.SelectedNode= myTreeView.Nodes[0]

this would move the selectednode off the one just selected, allowing it to
be reselected?
Peter
 
One can also simply set

this.treeView1.SelectedNode = null;

This will unselect any selected node.


--

Stoitcho Goutsev (100)

Peter Bromberg said:
Can't you just do something like

myTreeView.SelectedNode= myTreeView.Nodes[0]

this would move the selectednode off the one just selected, allowing it to
be reselected?
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com




Jerry Langley said:
Once a treeview node is selected how can I programmatically unselect it
so
that it might be selected again following the first selection if the user
desires?
The after selection event only fires when the selection changes.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top