Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - CreateRowNumberColumn & ShowRowNumber Example
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CreateRowNumberColumn & ShowRowNumber Example

 Post Reply Post Reply
Author
Message
jpbro View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 January 2007
Status: Offline
Points: 1355
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post Topic: CreateRowNumberColumn & ShowRowNumber Example
    Posted: 22 June 2009 at 1:50pm
Does anyone have a working example of these methods? The CJ RC sample shows the row number in the wrong column, and none of my attempts to get it to show properly seem to work. It also seems to start counting at 0, which is okay for programmers, but would appear weird to your average user.

Thanks in advance.
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6

Back to Top
Peter59 View Drop Down
Groupie
Groupie


Joined: 19 July 2007
Status: Offline
Points: 61
Post Options Post Options   Thanks (0) Thanks(0)   Quote Peter59 Quote  Post ReplyReply Direct Link To This Post Posted: 23 June 2009 at 6:14am
Hi Jason,

see sample project uploads/20090623_060858_ReportControl_R.zip

I ask myself for what reasons do I need a function for a special row no column? Column is not groupable (ok, seems senseless), not sortable, starts counting at 0 and number sign in the header "dances" when clicking on it...

Peter

Product: Xtreme SuitePro (ActiveX) version 15.2.1
Platform: Windows 7 64 Bit
Language: Visual Basic 6.0 SP6
Back to Top
jpbro View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 January 2007
Status: Offline
Points: 1355
Post Options Post Options   Thanks (0) Thanks(0)   Quote jpbro Quote  Post ReplyReply Direct Link To This Post Posted: 23 June 2009 at 8:09am
Thanks for the demo Peter. My problem was I was calling CreateRowNumberColumn before I added all of the columns.

I'm not sure what the use of an unsortable 0-based number column is either. Personally I think it would be better if if always remained numbered 1 to X even when you sort columns (to act as a spreadsheet like column numbering indicator), and possibly even restarted counting for each group when you group by columns. Something like:

Ungrouped, sorted by Column#1:
1    Item A    A
2    Item A    D
3    Item A    Q
4    Item B    B
5    Item B    F

Ungrouped, sorted by Column#2:
1    Item A    A
2    Item B    B
3    Item A    D
4    Item B    F
5    Item A    Q


Grouped:
Group: Column #1: Item A
1    Item A    A
2    Item A    D
3    Item A    Q
Group: Column #1: Item B
1    Item B    B
2    Item B    F
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6

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.156 seconds.