Print Page | Close Window

Slow updates with propertygrid...

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Property Grid
Forum Description: Topics Related to Codejock Property Grid
URL: http://forum.codejock.com/forum_posts.asp?TID=9526
Printed Date: 22 November 2024 at 7:12am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Slow updates with propertygrid...
Posted By: ddlittle
Subject: Slow updates with propertygrid...
Date 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



Replies:
Posted By: Oleg
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net