![]() |
CXTPReportView |
Post Reply
|
| Author | |
mailhaim
Newbie
Joined: 28 September 2005 Status: Offline Points: 26 |
Post Options
Thanks(0)
Quote Reply
Topic: CXTPReportViewPosted: 06 September 2006 at 2:58am |
|
Every row/record (I'm not sure I fully understand which I should use when...) in my report should be managed by proprietary object. I need to link between the row/record and my object.
2 questions: 1. How can I associate data (e.g. an object's pointer) with items rows / records (similar to the way it is done in CListCtrl::SetItemData())? 2. Does certain row/record has fixed index upon creation and until it is deleted, no matter how the user sorted the report? Regards, Haim |
|
![]() |
|
sserge
Moderator Group
Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
Quote Reply
Posted: 15 October 2006 at 2:03pm |
|
Hello Haim,
Report Record is a data object. It is defined by a class, which could be your custom class derived from a standard one. In your class of course you can add any additional fields of any type to a Record. Row is a visual representation of the Record. When you change sort order in the Report, the order of Rows in corresponding collection is changed; but the order of Records is always the same until you programmatically change it somehow. So, this is the answer to your second question. If you need a fixed index, use the index of a Record. Look also in the standard ReportSample application. CMessageRecord class shows you how to customize data for a Record. Hope this answers your first question. -- WBR, Serge |
|
![]() |
|
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 |