Print Page | Close Window

Updating Report control in virtual mode

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=13771
Printed Date: 23 May 2024 at 12:59pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Updating Report control in virtual mode
Posted By: alexshemesh
Subject: Updating Report control in virtual mode
Date Posted: 24 March 2009 at 5:48am
Hi
I nave Report control in my application that should display tens of thousands of rows.
I read those rows from data base , so it takes time to process them.
Ive implemented functionality that processes the records from DB by bunches of 1000 records and adds them to report control asynchronously.
Every time bunch of records processed i add it to underlying storage, call to SetVirtualMode with new number of rows and call to Populate to show new rows.
Everything works but every time i call Populate , Vertical scroll bar jumps back to first row of the list.
The whole idea of my mechanism is to make it possible for user to observe rows that already processed , while rest of rows being added.And its very hard to do when report control always jumps back to first row.
Is there some way to avoid this jump back to first row behavior?
Thanks



Replies:
Posted By: mdoubson
Date Posted: 26 March 2009 at 11:15pm
This is not real virtual mode. This is batch-load mode. It only help to accelerate initial display - but that's happened if user will press END on this first display? He will wait till the last batch will be load? Not very smart...

-------------
Mark Doubson, Ph.D.


Posted By: Aaron
Date Posted: 05 April 2009 at 2:13am
Originally posted by alexshemesh alexshemesh wrote:

[...]
Everything works but every time i call Populate , Vertical scroll bar jumps back to first row of the list.
The whole idea of my mechanism is to make it possible for user to observe rows that already processed , while rest of rows being added.And its very hard to do when report control always jumps back to first row.
[...]
 
Hi,
 
Everytime you call .Populate first row will be selected, you can avoid this by deleting all selected rows after you call .Populate
 
So:
 
wndReportControl.Populate
 
wndReportControl.SelectedRows.DeleteAll
DoEvents
 
 
 


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....



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