Treeview - set selected node programmatically?

Discussion in 'ASP .Net' started by JJ, Nov 6, 2006.

  1. JJ

    JJ Guest

    Is it possible to set the selected node programmatically rather than only
    via a user clicking on a node?

    JJ
     
    JJ, Nov 6, 2006
    #1
    1. Advertisements

  2. JJ

    JJ Guest

    OK I found it:
    treenode.Selected = true.

    Got confused as Treeview.SelectedNode is a read only property.
    JJ
    "JJ" <> wrote in message
    news:...
    > Is it possible to set the selected node programmatically rather than only
    > via a user clicking on a node?
    >
    > JJ
    >
     
    JJ, Nov 6, 2006
    #2
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. wolf
    Replies:
    0
    Views:
    653
  2. Replies:
    0
    Views:
    1,895
  3. Alan Silver
    Replies:
    0
    Views:
    654
    Alan Silver
    Dec 21, 2005
  4. Replies:
    2
    Views:
    13,082
    ro0oraa
    Sep 2, 2012
  5. Tjerk Wolterink
    Replies:
    2
    Views:
    1,702
    Dimitre Novatchev
    Aug 24, 2006
  6. jiing
    Replies:
    0
    Views:
    3,145
    jiing
    Apr 27, 2007
  7. Homer J. Simpson

    TreeView node style - for an individual node

    Homer J. Simpson, Jul 23, 2007, in forum: ASP .Net
    Replies:
    5
    Views:
    9,278
    Homer J. Simpson
    Jul 24, 2007
  8. dhurwitz

    Programmatically selecting a node in a TreeView

    dhurwitz, Jun 13, 2006, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    312
    dhurwitz
    Jun 13, 2006
Loading...