Print Page | Close Window

CXTPReportView

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=4979
Printed Date: 11 November 2025 at 11:29am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPReportView
Posted By: mailhaim
Subject: CXTPReportView
Date Posted: 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



Replies:
Posted By: sserge
Date 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



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