Print Page | Close Window

Populate() performance

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=14113
Printed Date: 29 September 2024 at 7:27pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Populate() performance
Posted By: Bart6
Subject: Populate() performance
Date Posted: 23 April 2009 at 2:54am
Hi all,

My ReportControl contains the scene nodes of a 3D scene. Each node display the main value of each scene node, such as translation, rotation etc.

When i move an opbject on the screen (using the mouse), i would like to update the ReportControl with the new translation coordinates at the same time as the scene node moves.

I change the value of an existing record, by accessing the RecordItem and setting the new value.
Then i call the Populate() method. The value is indeed update, but the dragging the scene node has become sluggish....

So here is the question:
what is the *fastest* way to update a record/row on the screen. (Populate seems to repopulate the entire reportControl from scratch, i bit heavy to alter just 1 value)

Thanks




Replies:
Posted By: znakeeye
Date Posted: 24 April 2009 at 3:03am
Use virtual mode! (See VirtualList sample)

-------------
PokerMemento - http://www.pokermemento.com/


Posted By: adrien
Date Posted: 01 May 2009 at 9:48am
BeginUpdate()

pRecord->pField->SetValue(...)

EndUpdate()

-------------
http://www.wingate.com - http://www.wingate.com



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