CreateRowNumberColumn & ShowRowNumber Example
Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=14597
Printed Date: 15 November 2024 at 1:59am Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com
Topic: CreateRowNumberColumn & ShowRowNumber Example
Posted By: jpbro
Subject: CreateRowNumberColumn & ShowRowNumber Example
Date 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
|
Replies:
Posted By: Peter59
Date Posted: 23 June 2009 at 6:14am
Hi Jason,
see sample project uploads/20090623_060858_ReportControl_R.zip - 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
|
Posted By: jpbro
Date 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
|
|