Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTPReportView
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPReportView

 Post Reply Post Reply
Author
Message
mailhaim View Drop Down
Newbie
Newbie


Joined: 28 September 2005
Status: Offline
Points: 26
Post Options Post Options   Thanks (0) Thanks(0)   Quote mailhaim Quote  Post ReplyReply Direct Link To This Post Topic: CXTPReportView
    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
Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.031 seconds.