Treeview Select Node ?

Posted on 2006-05-16
Last Modified: 2012-08-13
In code how can I select a specific Node in a Treeview? I now the exact row it is on.
Question by:szx248
    LVL 3

    Expert Comment


    should give you the first node of the tree, on the upmost level.

    This should work fine if you are trying to reach some node on the upmost level.

    If you have nested nodes, you can also reach themby extending the notation like,


    this will give you the 3rd node of the 5th node of the first node on the root :)

    hope this helps



    Author Comment

    I am not asking how to reference it, but how to SELECT it, meaning that it should be equivlant to when you click with the mouse a that Node
    LVL 3

    Accepted Solution

    oh sorry...

    then the code should look like


    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Join & Write a Comment

    Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
    I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now