tags:

views:

22

answers:

1

I'm adding Nodes to TreeView dynamically. I'm just creating labels and add them to nodes. My treeView looks like that:

TreeView 1

-Node 1

  - Node 1.1

      -Node 1.1.1

         -Node 1.1.1.A

          -Node 1.1.1.B

      -Node 1.1.2

          -Node 1.1.2.A 

After click nodes, i want only do something if clicked node is: Node 1.1.1.A, Node 1.1.1B or Node 1.1.2.A. So i'm checking labels, but label in nodes 1.1.1 and 1.1.2 are changing in while loop so how can i check it?

+2  A: 

You could put something in the Tag property, like a bool, that specifies which ones should trigger something, and then when one is clicked check to see if it has it but it would help if you could clarify your question with more detail

w69rdy
Thanks:) Great idea.