Print Page | Close Window

VirtualMode

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=4719
Printed Date: 04 July 2025 at 7:47am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: VirtualMode
Posted By: rdeboer
Subject: VirtualMode
Date Posted: 03 August 2006 at 9:52am
Hi,
 
I'm switching to VirtualMode for the ReportControl, and everything runs fine, but 1 problem I got:
 
With normal mode, I doubleclick on a row. In the Event 'RowDblClick' I got the value of a column, like:
 
Value = Row.Record.Item(8).Value
 
This doesn't seem to work in Virtual mode? (Value = empty)
 
How do I get the value of a column when double clicking on a row?
 
Additionally: Does the FilterText work with the VirtualMode?
 



Replies:
Posted By: SuperMario
Date Posted: 03 August 2006 at 10:54am
Problem is that with Virtual Mode you really only have 1 record that exists.  Virtual mode is designed to be used with the data stored in some external data source like a database or some array.  So in double click event you want to search for row and column that was clicked, then you can pull this data from your external data source.  This is the same way you should be drawing the items in the BeforeDraw event, determine the row and column, then draw the appropriate caption.


Posted By: SuperMario
Date Posted: 03 August 2006 at 10:57am
No, filter text will not work for some of the same reasons I gave above.  There is only 1 record object.  But you can easily apply your own custom filter in BeforeDrawRow since you are manually drawing all rows anyway.


Posted By: rdeboer
Date Posted: 03 August 2006 at 11:03am
Originally posted by SuperMario SuperMario wrote:

No, filter text will not work for some of the same reasons I gave above.  There is only 1 record object.  But you can easily apply your own custom filter in BeforeDrawRow since you are manually drawing all rows anyway.
 
That's a very good tip
 
I almost abandoned the FilterText method ;-)
 


Posted By: rdeboer
Date Posted: 03 August 2006 at 11:30am
Originally posted by SuperMario SuperMario wrote:

No, filter text will not work for some of the same reasons I gave above.  There is only 1 record object.  But you can easily apply your own custom filter in BeforeDrawRow since you are manually drawing all rows anyway.
 
One more question:
 
I managed to add  filter in the BeforeDrawRow Event, but despite that all items are always displayed.
 
How can I prevent displaying a row in the BeforeDrawRow event?
 
 


Posted By: SuperMario
Date Posted: 03 August 2006 at 12:57pm
After giving this some more thought, about the only way to do this in virtual mode would be to externally create a subset of your data source and use this subset to place data in the report.



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