I have a large treeview with more than 100,000 items. When i programmatically
select a node it will not always be visible
node = jumplist(0)
CatalogTree.SelectedNode = node
node.EnsureVisible() ' Doesn't do anything useful. Node might scrolled away

I would like to programmatically scroll the selected item to the top of the
viewable area.

Re: Large treeview scrolling by Mark

Mark
Fri Nov 11 09:49:57 CST 2005

Treeview only shows a maximum number of items, can't remember the number
when I did a test but it was around 80k or so.

I can highly recommend Virtual Tree from www.infralution.com

You can use the virtual mode and only have the nodes that are visible be in
memory, it's very fast.

Mark

"Arne" <Arne@discussions.microsoft.com> wrote in message
news:D8EF4DCA-7E96-424B-81C4-1A2F46CA9F57@microsoft.com...
>I have a large treeview with more than 100,000 items. When i
>programmatically
> select a node it will not always be visible
> node = jumplist(0)
> CatalogTree.SelectedNode = node
> node.EnsureVisible() ' Doesn't do anything useful. Node might scrolled
> away
>
> I would like to programmatically scroll the selected item to the top of
> the
> viewable area.



Re: Large treeview scrolling by Arne

Arne
Fri Nov 11 11:02:06 CST 2005

Third party component will be great for about 5 years. When the next
Microsoft platform comes then you are screwed.

"Mark" wrote:

> Treeview only shows a maximum number of items, can't remember the number
> when I did a test but it was around 80k or so.
>
> I can highly recommend Virtual Tree from www.infralution.com
>
> You can use the virtual mode and only have the nodes that are visible be in
> memory, it's very fast.
>
> Mark
>
> "Arne" <Arne@discussions.microsoft.com> wrote in message
> news:D8EF4DCA-7E96-424B-81C4-1A2F46CA9F57@microsoft.com...
> >I have a large treeview with more than 100,000 items. When i
> >programmatically
> > select a node it will not always be visible
> > node = jumplist(0)
> > CatalogTree.SelectedNode = node
> > node.EnsureVisible() ' Doesn't do anything useful. Node might scrolled
> > away
> >
> > I would like to programmatically scroll the selected item to the top of
> > the
> > viewable area.
>
>
>

Re: Large treeview scrolling by Gabriel

Gabriel
Fri Nov 11 14:46:12 CST 2005

The visible nodes are limited to a max value of 65535.

Gabriel Lozano-Morán



Re: Large treeview scrolling by Gabriel

Gabriel
Fri Nov 11 14:52:48 CST 2005

Each visible node will get a window handle and the maximum number of window
handles is limited to 65536 because Windows XP is compatible with 16-bit
applications. Someday when Microsoft does not have to support the old 16-bit
applications anymore you would be only limited by the available memory

Gabriel Lozano-Morán



Re: Large treeview scrolling by Arne

Arne
Fri Nov 11 15:31:04 CST 2005

I have 150,000 nodes in my tree. The visible nodes are about 50.
and the Ensurevisibility property doesn't work.

"Gabriel Lozano-Morán" wrote:

> The visible nodes are limited to a max value of 65535.
>
> Gabriel Lozano-Morán
>
>
>

Re: Large treeview scrolling by Gabriel

Gabriel
Fri Nov 11 16:41:17 CST 2005

I have tried it and it seems to work as long as the selected node is under
65536.

What behaviour do you exactly notice? No scrolling or no item selected?

Gabriel Lozano-Morán



Re: Large treeview scrolling by Arne

Arne
Mon Nov 14 09:10:11 CST 2005

I can scroll with the mouse. I do not know how to scroll with code.
The selected item is out of view. The operator has to click the scroll bar
to find it.
I would like to scroll the selected item to the top of the viewable area
with code.

"Gabriel Lozano-Morán" wrote:

> I have tried it and it seems to work as long as the selected node is under
> 65536.
>
> What behaviour do you exactly notice? No scrolling or no item selected?
>
> Gabriel Lozano-Morán
>
>
>