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. Advertising

  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. Advertising

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. Replies:
    0
    Views:
    1,467
  2. Alan Silver
    Replies:
    0
    Views:
    527
    Alan Silver
    Dec 21, 2005
  3. Replies:
    2
    Views:
    12,478
    ro0oraa
    Sep 2, 2012
  4. Tjerk Wolterink
    Replies:
    2
    Views:
    1,437
    Dimitre Novatchev
    Aug 24, 2006
  5. dhurwitz

    Programmatically selecting a node in a TreeView

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

Share This Page