473,326 Members | 2,111 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Treeview - how to get value of grandchild node

K B
Hi, still stuck on this. Please help!

<parent>
<child>
<grandchild1/>
<grandchild2/>
<child>
</parent>
<parent>
<child>
<grandchild1/>
<grandchild2/>
<child>
</parent>

How do I get the value of the grandchild nodes? I can use:
For Each node In tvRoles.Nodes(0).ChildNodes but that only gets me to
the <child> node. How to get the <child> node's child?

TIA,
Kit

*** Sent via Developersdex http://www.developersdex.com ***
May 7 '06 #1
1 2041
Hello Kit,

what's about the child nodes of the node?

For Each TreeNode in tvRoles(0).ChildNodes
For Each grandchild in node.ChildNodes // grandchild shold be the
grandchild of tvRoles(0)
// do something with.

Hope that helps

Regards
Rolf

"K B" <ka**********@comcast.net> schrieb im Newsbeitrag
news:OU**************@TK2MSFTNGP05.phx.gbl...
Hi, still stuck on this. Please help!

<parent>
<child>
<grandchild1/>
<grandchild2/>
<child>
</parent>
<parent>
<child>
<grandchild1/>
<grandchild2/>
<child>
</parent>

How do I get the value of the grandchild nodes? I can use:
For Each node In tvRoles.Nodes(0).ChildNodes but that only gets me to
the <child> node. How to get the <child> node's child?

TIA,
Kit

*** Sent via Developersdex http://www.developersdex.com ***

May 8 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Greg | last post by:
Hi. I have a rather large xml document (object) that can have one or more nodes with a certain attribute throughout (at ANY depth, not at the same level necessarily). I need to find this...
4
by: Ian Powell | last post by:
Hi I've got objects in an sorted ArrayList like: P:\ P:\\DOCS P:\\i386 P:\\i386\ASMS P:\\i386\ASMS\1000 P:\\i386\ASMS\1000\MSFT
13
by: André Nogueira | last post by:
Hi there. I know you can view a node's fullpath property, but is it posible to select a node using its path? Like, tell the treeview that the node that should be selected is the node with the...
1
by: Alex D. | last post by:
hey guys I found what is causing the problems with my treeview in Firefox...the answer is: treeview+dropdwonlist in the same page dont work! try this simple code and see for yourselves. you can do...
1
by: Elmo Watson | last post by:
forgive me, but I'm fairly new to VB.Net - having only used VB6 in the past - - I can easily place a node on the treeview (tv1.nodes.add(key, text) BUT - in VB6, we'd add a child node...
0
by: jiing | last post by:
Hi all, I want to use sting(the same as Node.Text) to judge if a node exists in TreeView. I've tried several ways, but seems all failed. could anybody help me? Thanks in advance. //My...
6
by: =?Utf-8?B?QnJhZA==?= | last post by:
VS,VB 2005 I have a treeview which i load data into in the forms load event Adding Nodes and Children to the parent nodes works fine to add a parent:...
2
by: =?Utf-8?B?bWFib25k?= | last post by:
I'm using a treeview control. One parent node, several child nodes, several grandchild nodes. Each of the nodes has a checkbox. My question, when the user changes the check value of one of the...
5
by: SkipSailors | last post by:
I have some XML that I want to transform to some XML: <element> <child> <grandchild> otherWord </grandchild> <grandchild> triggerExclusion...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.