PLEASE - treeview nodes show but are not recognized?

  • Thread starter Thread starter K B
  • Start date Start date
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
 
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

Back
Top