|  | 
| VirtualMode | 
| Post Reply   | 
| Author | |
| rdeboer   Groupie   Joined: 29 April 2004 Location: Netherlands Status: Offline Points: 81 |  Post Options  Thanks(0)  Quote  Reply  Topic: VirtualMode 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? | |
|  | |
| SuperMario   Senior Member     Joined: 14 February 2004 Status: Offline Points: 18057 |  Post Options  Thanks(0)  Quote  Reply  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.
    | |
|  | |
| SuperMario   Senior Member     Joined: 14 February 2004 Status: Offline Points: 18057 |  Post Options  Thanks(0)  Quote  Reply  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.
    | |
|  | |
| rdeboer   Groupie   Joined: 29 April 2004 Location: Netherlands Status: Offline Points: 81 |  Post Options  Thanks(0)  Quote  Reply  Posted: 03 August 2006 at 11:03am | 
| 
 That's a very good tip   I almost abandoned the FilterText method ;-) | |
|  | |
| rdeboer   Groupie   Joined: 29 April 2004 Location: Netherlands Status: Offline Points: 81 |  Post Options  Thanks(0)  Quote  Reply  Posted: 03 August 2006 at 11:30am | 
| 
 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? | |
|  | |
| SuperMario   Senior Member     Joined: 14 February 2004 Status: Offline Points: 18057 |  Post Options  Thanks(0)  Quote  Reply  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. | |
|  | |
| Post Reply   | |
| Tweet | 
| Forum Jump | Forum Permissions  You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |