This is a migrated thread and some comments may be shown as answers.

How can i know value of node

1 Answer 55 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Jorge
Top achievements
Rank 1
Jorge asked on 07 Oct 2008, 05:38 PM

I have the structure in my treeview:

Node1
    childnode 1.1
    childnode 1.2
Node2
    childnode 2.1
    childnode 2.2

How can I know the value of my node1 or node2 if the pisition is in  childnode21

I need the value of parent node bacuse a work this database and I need the value to add a new record.

Thanks Jorge Pineda

1 Answer, 1 is accepted

Sort by
0
ramya
Top achievements
Rank 1
answered on 08 Oct 2008, 03:43 AM
Hi,

 childNode.Parent.Value gives the parent node value.

 where childNode is the reference of the (specified) child node.

Regards,
Ramya
 
Tags
TreeView
Asked by
Jorge
Top achievements
Rank 1
Answers by
ramya
Top achievements
Rank 1
Share this question
or