Tree view Question

Posted on 2011-11-01
Last Modified: 2012-06-27
I am using a treeview control in
I just want to fetch the values of the selected nodes on the click of a button.
Question by:ASPNET_8
    LVL 8

    Expert Comment

    You wrote "selected nodes". So I assume your treeview uses checkable nodes.
    If so then in button click you can use TreeView's CheckedNodes collection to get all the checked nodes.

    If only one node in tree view is selected then you can use TreeView's SelectedNode property.
    LVL 9

    Accepted Solution

    jagrut_patel has suggested the right way of looping through CheckedNodes of treeview.

    Here is link to that:

    Does your requirement differ from that?
    LVL 9

    Expert Comment


    No updates since long time.

    Author Closing Comment


    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    AJAX ModalPopupExtender has a required property "TargetControlID" which may seem to be very confusing to new users. It means the server control that will be extended by the ModalPopup, for instance, if when you click a button, a ModalPopup displays,…
    Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!

    755 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

    20 Experts available now in Live!

    Get 1:1 Help Now