Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Treeview problem [modified]

Treeview problem [modified]

Scheduled Pinned Locked Moved C#
helpquestion
6 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Suhas Bothe
    wrote on last edited by
    #1

    Hi Friends, I created treeview with checkbox. When user clicked on checkbox of any node of treeview how do I know that checked node is parent node or not?Please help? There is no event that send treenode as sender. All Event send whole treeview as sender? please Help ? Suhas Bothe -- modified at 7:57 Thursday 9th November, 2006 Suhas Bothe

    R 1 Reply Last reply
    0
    • S Suhas Bothe

      Hi Friends, I created treeview with checkbox. When user clicked on checkbox of any node of treeview how do I know that checked node is parent node or not?Please help? There is no event that send treenode as sender. All Event send whole treeview as sender? please Help ? Suhas Bothe -- modified at 7:57 Thursday 9th November, 2006 Suhas Bothe

      R Offline
      R Offline
      Robert Rohde
      wrote on last edited by
      #2

      Hi, the node that has been checked is supplied in the TreeViewEventArgs of the event. Use its ParentNode property to determine whether it has a parent or is a top level node. Robert

      S 2 Replies Last reply
      0
      • R Robert Rohde

        Hi, the node that has been checked is supplied in the TreeViewEventArgs of the event. Use its ParentNode property to determine whether it has a parent or is a top level node. Robert

        S Offline
        S Offline
        Suhas Bothe
        wrote on last edited by
        #3

        There are no any Propety for System.EventArgs e. please can you explain in details?

        R 1 Reply Last reply
        0
        • R Robert Rohde

          Hi, the node that has been checked is supplied in the TreeViewEventArgs of the event. Use its ParentNode property to determine whether it has a parent or is a top level node. Robert

          S Offline
          S Offline
          Suhas Bothe
          wrote on last edited by
          #4

          Can you explain in details please. suhas bothe

          V 1 Reply Last reply
          0
          • S Suhas Bothe

            There are no any Propety for System.EventArgs e. please can you explain in details?

            R Offline
            R Offline
            Robert Rohde
            wrote on last edited by
            #5

            If you catch the AfterCheck event you will get TreeViewEventArgs and not EventArgs. I assume you probably used the Click event so far. Use AfterCheck instead and you'll be fine. Robert

            1 Reply Last reply
            0
            • S Suhas Bothe

              Can you explain in details please. suhas bothe

              V Offline
              V Offline
              vinSharp
              wrote on last edited by
              #6

              The 'AfterCheck' event occurs after the tree node check box is checked. Just delegate this event and in the function you'll get 'TreeViewEventArgs' as the second parameter. It would have all the information you are looking out for. For more details you can refer to the 'AfterCheck' help in MSDN.

              There are two types of fools in this world: One who give advice and the others who do not take it...

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups