CreateRowNumberColumn & ShowRowNumber Example |
Post Reply |
Author | |
jpbro
Senior Member Joined: 12 January 2007 Status: Offline Points: 1355 |
Post Options
Thanks(0)
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 |
|
Peter59
Groupie Joined: 19 July 2007 Status: Offline Points: 61 |
Post Options
Thanks(0)
|
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 |
|
jpbro
Senior Member Joined: 12 January 2007 Status: Offline Points: 1355 |
Post Options
Thanks(0)
|
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 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |