Re: Speed problem in adding TreeNodes to its Parent in a TreeView
From: Grant Frisken (grant_at_infralution.com)
Date: 02/28/05
- Next message: Allen: "Help with filling listbox from a function in another class"
- Previous message: Herfried K. Wagner [MVP]: "Re: Convert ListBox Selectedvalue into INT"
- In reply to: Deepak Malkan [Bentley]: "Re: Speed problem in adding TreeNodes to its Parent in a TreeView"
- Next in thread: Deepak Malkan [Bentley]: "Re: Speed problem in adding TreeNodes to its Parent in a TreeView"
- Reply: Deepak Malkan [Bentley]: "Re: Speed problem in adding TreeNodes to its Parent in a TreeView"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: Allen: "Help with filling listbox from a function in another class"
- Previous message: Herfried K. Wagner [MVP]: "Re: Convert ListBox Selectedvalue into INT"
- In reply to: Deepak Malkan [Bentley]: "Re: Speed problem in adding TreeNodes to its Parent in a TreeView"
- Next in thread: Deepak Malkan [Bentley]: "Re: Speed problem in adding TreeNodes to its Parent in a TreeView"
- Reply: Deepak Malkan [Bentley]: "Re: Speed problem in adding TreeNodes to its Parent in a TreeView"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|