Home All Groups Group Topic Archive Search About

Is there a limit of number of nodes for a TreeView?

Author
21 Apr 2006 8:45 PM
Chris
Hi,

I am using TreeView control from .Net Framework 1.1. Everything works if the
number of nodes is not too big.
When the number reaches thousands and the tree is fully expeanded ,  some
nodes(the nodes at the end) are missing.

Is there a limit for the number of nodes? If yes, how can I work around this
issue?

Thanks,
Chris

Author
24 Apr 2006 7:37 AM
Kevin Yu [MSFT]
Hi Chris,

As far as I know, there isn't any limitation on the node count of TreeView.
If you add thousands of nodes to the TreeView, you can try to set a
breakpoint on the nodes loading code to check if the specific node has been
added to the tree node collection. Also, are the same nodes missing from
the treeview each time?

Kevin Yu
Microsoft Online Community Support

============================================================================
==========================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
============================================================================
==========================

(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Author
24 Apr 2006 8:44 AM
Eugene Mayevski
Hello!
You wrote  on Mon, 24 Apr 2006 07:37:58 GMT:

KYM> As far as I know, there isn't any limitation on the node count of
KYM> TreeView. If you add thousands of nodes to the TreeView, you can try

Is .NET TreeView mapped to ComCtl32 treeview? The latter one has a limit of
65K nodes, if memory serves.

With best regards,
Eugene Mayevski
Author
26 Apr 2006 12:52 AM
Chris
Thanks, that seems to be true.
I just added counting of nodes, it goes up to 95K nodes.
It seems I need to create my own tree view.

Thanks,
Chris

Show quote
"Eugene Mayevski" <mayev***@eldos.com> wrote in message
news:OpQcOt3ZGHA.3752@TK2MSFTNGP03.phx.gbl...
> Hello!
> You wrote  on Mon, 24 Apr 2006 07:37:58 GMT:
>
> KYM> As far as I know, there isn't any limitation on the node count of
> KYM> TreeView. If you add thousands of nodes to the TreeView, you can try
>
> Is .NET TreeView mapped to ComCtl32 treeview? The latter one has a limit
> of 65K nodes, if memory serves.
>
> With best regards,
> Eugene Mayevski
Author
30 Apr 2006 2:55 PM
Tim Brooks
Chris,

You might also just have a paint update problem.  I'm sure you've looked at
this but  make sure you're halting screen updating with:

TreeView.BeginUpdate();
// ..Add nodes....
TreeView.EndUpdate();

....also, consider only loading nodes on demand.  This is a more acceptable
pracice for huge lists.  Trick is to load dummy nodes and them, when user
clicks on the parent, which is loaded, it replaces the dummy with the actual
next node.....look this one up on the internet.....scores of examples of how
to do it...

Good luck,
tim

Show quote
"Chris" <chrisforng@newsgroup.nospam> wrote in message
news:uyOTXSYZGHA.4884@TK2MSFTNGP02.phx.gbl...
> Hi,
>
> I am using TreeView control from .Net Framework 1.1. Everything works if
> the number of nodes is not too big.
> When the number reaches thousands and the tree is fully expeanded ,  some
> nodes(the nodes at the end) are missing.
>
> Is there a limit for the number of nodes? If yes, how can I work around
> this issue?
>
> Thanks,
> Chris
>
>

AddThis Social Bookmark Button