Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Property Grid
  New Posts New Posts RSS Feed - Slow updates with propertygrid...
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Slow updates with propertygrid...

 Post Reply Post Reply
Author
Message
ddlittle View Drop Down
Senior Member
Senior Member


Joined: 19 February 2004
Location: United States
Status: Offline
Points: 132
Post Options Post Options   Thanks (0) Thanks(0)   Quote ddlittle Quote  Post ReplyReply Direct Link To This Post Topic: Slow updates with propertygrid...
    Posted: 07 February 2008 at 3:52pm
I have several property grids that need to be updated whenever a file is opened - sometimes with 20K lines total, in up to 3 or 4 levels - and my performance is bad (7600 line update, four grids, 44 seconds).  I tried calling BeginUpdate/EndUpdate and the time went down to 43 seconds.  Not exactly the increase i was hoping for.
 
I am out of ideas  -  anybody have any? 
 
Thanks!
 
- David
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 08 February 2008 at 1:03am
Hi,
 
its too much lines. Only to create 10000 CXTPPropertyGridItem objects will take 7-9 seconds.
 
 for (int i = 0; i < 10000; i++)
 {
  new CXTPPropertyGridItem(1, "");
 }
 
Think you need to change logic of your application. Make some filter. Don't think somebody ineed need 10000 lines in propertygrid.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.