treeview node count not incrementing when adding new nodes 
Author Message
 treeview node count not incrementing when adding new nodes

I am populating a treeview with records from a database.  When
retrieving a new record from the database I want to loop through the
treeview to see which treeview.node I should be adding the new record
to.  After adding a new node, the treeview.nodes.count value does not
change, so I am not able to loop through the tree to find the node to
add to.  I am not sure what I am missing.  Any ideas?  The other odd
fact is that Treeview1.Nodes.Count <> TreeView1.GetNodeCount(True).

Thanks,
Tim



Wed, 08 Jun 2005 00:24:11 GMT  
 treeview node count not incrementing when adding new nodes
This is not the case on a windows form under XP with .NET Framework with No
SP.

Are you using a form or webpage?

Randy


Quote:
> I am populating a treeview with records from a database.  When
> retrieving a new record from the database I want to loop through the
> treeview to see which treeview.node I should be adding the new record
> to.  After adding a new node, the treeview.nodes.count value does not
> change, so I am not able to loop through the tree to find the node to
> add to.  I am not sure what I am missing.  Any ideas?  The other odd
> fact is that Treeview1.Nodes.Count <> TreeView1.GetNodeCount(True).

> Thanks,
> Tim



Tue, 14 Jun 2005 14:21:37 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. TreeView.Nodes.Count not displayed

2. TreeView: flicker during adding new nodes

3. treeview - Move node, insert node

4. TreeView-Move Node Between Other Nodes?

5. Treeview Node Count

6. What Happened to the Treeview.Nodes.Count Property?

7. Count of Children under a TreeView Node

8. TreeView: How insert a new node as a parent to an existing subtree

9. TreeView Node a new parent.

10. Auto editing of new TreeView node

11. Adding nodes to Treeview

12. Adding Nodes to TreeView and XML files

 

 
Powered by phpBB® Forum Software