PLEASE - treeview nodes show but are not recognized?

K

K B

I have a treeview control which displays fine. But when I go to count
the nodes in code, it says 2 when it should say 10. I don't even know
where to begin to find this since the control populates fine.

TIA,
Kit
 
K

K B

I figured out part of it...using

For Each node In tvRoles.Nodes(1).ChildNodes
Dim sTest1 As String = node.Value
Dim sTest2 As String = node.Parent.Value
If node.Checked Then
test = test + 1
End If
Next

I get child nodes but one level higher than i need. I have child nodes
under the (1) level, but when I make it Nodes(2) I get an out of index
range error.

Any ideas...please?

Kit
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top