Virtual Report and Checkboxes |
Post Reply |
Author | |
rock
Groupie Joined: 27 October 2005 Status: Offline Points: 19 |
Post Options
Thanks(0)
Posted: 18 November 2005 at 11:00am |
I have a window with a CXTPReportControl and I am using SetVirtualMode() for a database search result. It works fine and properly displays the information. The first column of the report is a check box. The column was added using the AddItem() function in a CXTPReportRecord derived class. The class passed to AddItem() is a CXTPReportRecordItem derived class exactly like the CMessageRecordItemCheck class in the report sample. When I click on any checkbox in the Report Control, all the items in the report become checked or unchecked instead of just the one clicked on. Is this functionality not possible in a virtual report? Or will I have to deal with this somehow within the Report Record class during GetItemMetrics()? |
|
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
Hi,
Note that adding an item to the virtual report row means only adding a kind of item substitute. In order to show data of the specific row you should add a kind of the following code:
-- WBR, Serge |
|
rock
Groupie Joined: 27 October 2005 Status: Offline Points: 19 |
Post Options
Thanks(0)
|
Works perfectly. Thanks
|
|
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 |