Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Display Row Number in Report Control v10.42
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Display Row Number in Report Control v10.42

 Post Reply Post Reply
Author
Message
franji1 View Drop Down
Groupie
Groupie
Avatar

Joined: 28 June 2005
Status: Offline
Points: 70
Post Options Post Options   Thanks (0) Thanks(0)   Quote franji1 Quote  Post ReplyReply Direct Link To This Post Topic: Display Row Number in Report Control v10.42
    Posted: 05 September 2008 at 10:43am
Is there a mechanism for displaying the row number in the first column of each row as part of the GUI, similar to the Header?  Or will I have to add items to my record as the first column containing the row number?
 
We have XTP 10.42 Toolkit Pro using the Report Control.
Back to Top
franji1 View Drop Down
Groupie
Groupie
Avatar

Joined: 28 June 2005
Status: Offline
Points: 70
Post Options Post Options   Thanks (0) Thanks(0)   Quote franji1 Quote  Post ReplyReply Direct Link To This Post Posted: 23 September 2008 at 9:57am
I guess the answer is "no"
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1198
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Posted: 23 September 2008 at 10:01am
Just a suggestion:

Create your own CXTPReportRecordItem derived class and draw it like a header column.
For each record at the first column add such an item type...
Martin

Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017
Back to Top
franji1 View Drop Down
Groupie
Groupie
Avatar

Joined: 28 June 2005
Status: Offline
Points: 70
Post Options Post Options   Thanks (0) Thanks(0)   Quote franji1 Quote  Post ReplyReply Direct Link To This Post Posted: 23 September 2008 at 10:28am
Yes, that's what I was thinking of doing.  It won't be hard, but I was hoping it was already done.
 
I've derived from the CXTPReportControl class with a more specific class with some more configurable intelligence relevant to our application, and so making the row number column "optional" for different instances of the report control is gonna be a little more work than just implementing a one-time instance.
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.125 seconds.