Re: Speed problem in adding TreeNodes to its Parent in a TreeView

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Grant Frisken (grant_at_infralution.com)
Date: 02/28/05


Date: 28 Feb 2005 15:19:11 -0800

The commercial .NET tree products are not based on the underlying Win32
controls (they typically perform all their own drawing) and so don't
suffer necessarily from exactly the same performance problems.
VirtualTree does not require a complete in-memory model of the tree
nodes before it draws (as most tree controls do). Instead it draws on
the fly - retrieving only the information required from your data
source to draw the current display. This means you don't add 500000
nodes up front (with the performance and memory penalities that
entails) - the information is sucked from the data source as required
as the user browses.

You could implement something similar yourself - but be prepared to
sacrifice a month or two just to get something fairly basic going.

Regards
Grant Frisken
www.infralution.com



Relevant Pages

  • Re: Edit a treeviews node from another form
    ... easiest way to keep the main forms tree in sync ... > Private Sub ApplyChanges ... > property to handle populating the controls on that Form. ... >> populate the class) which is stored in the node / items tags. ...
    (microsoft.public.dotnet.framework.windowsforms.controls)
  • Re: Recreate msdn drill down look and feel
    ... Such tree controls work very well when you have small numbers of nodes in ... your tree. ... Microsoft MVP - Windows Client ... > "Mark" wrote in message ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Frage zu LaoutManagement in WPF
    ... Controls, Finden der Bindings, Finden der Rules, Aufrufen der Rules..... ... wenn man Anwendern 1000 Elemente vorwirft, ... nur der Visual Tree wird angepasst. ... Die Daten sind im Speicher und werden evtl. ...
    (microsoft.public.de.german.entwickler.dotnet.csharp)
  • Re: New to ASP.NET
    ... > I do a postback or click on a entry in the Tree View I end up getting all ... Viewstate is a hidden input control that other controls ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Bug with TreeView control
    ... do not use form Open event - use only Load event to work with activex ... > "Bradley" wrote in message ... I only build the tree once, ...
    (microsoft.public.access.forms)