jonrmorgan
New member
- Joined
- Jun 28, 2003
- Messages
- 1
Hi,
Im implementing a databound , linked grid and tree. The grid starts out as a simple list but the user can categorise the list in a simple three tier hierarchy that is displayed via the currency manager in the treeview.
My problem is that there can be over 10,000 data items and initially only a few will be categorised. This makes the treeview painfully slow to refresh.
I have tried some of the more obvious things like putting BeginUpdate/EndUpdate around the redraw and only adding child nodes when a parent is clicked. These dont really help - what seems to be slowing things down is repainting the control.
So is there a way to override the paint event directly (overriding OnPaint doesnt get called ?), and how can I owner draw just those nodes that are actually visible ?
Happy to work on GDI or API code but GDI+ in VB/C# ideal.
Thanks for any help
Jon
Im implementing a databound , linked grid and tree. The grid starts out as a simple list but the user can categorise the list in a simple three tier hierarchy that is displayed via the currency manager in the treeview.
My problem is that there can be over 10,000 data items and initially only a few will be categorised. This makes the treeview painfully slow to refresh.
I have tried some of the more obvious things like putting BeginUpdate/EndUpdate around the redraw and only adding child nodes when a parent is clicked. These dont really help - what seems to be slowing things down is repainting the control.
So is there a way to override the paint event directly (overriding OnPaint doesnt get called ?), and how can I owner draw just those nodes that are actually visible ?
Happy to work on GDI or API code but GDI+ in VB/C# ideal.
Thanks for any help
Jon