![]() |
Hiding sorted field in group header |
Post Reply ![]() |
Author | |
tobi ![]() Senior Member ![]() ![]() Joined: 09 September 2004 Location: Germany Status: Offline Points: 451 |
![]() ![]() ![]() ![]() ![]() Posted: 19 May 2006 at 2:30pm |
If I sort Report Control the group headers contain the field name which the control is sorted. E.g. if I sort by Date all group header start by Date : XYZ. |
|
![]() |
|
sserge ![]() Moderator Group ![]() Joined: 01 December 2004 Status: Offline Points: 1297 |
![]() ![]() ![]() ![]() ![]() |
Hello,
Yes, just use .GroupCaption property for an item of this column. See VB sample, method SetDateItem.
-- WBR, Serge |
|
![]() |
|
Timo ![]() Newbie ![]() Joined: 30 May 2006 Status: Offline Points: 1 |
![]() ![]() ![]() ![]() ![]() |
This works indeed, but I noticed something strange: the groups are not correctly sorted when you use the groupcaption option. It seems like the it sorts by the groupcation and not by the value of the recordItem. This is a problem when you're grouping by a date column and you want a formatted date in the groupcaption (in my case format "dd-mm-yyyy").
|
|
![]() |
|
sserge ![]() Moderator Group ![]() Joined: 01 December 2004 Status: Offline Points: 1297 |
![]() ![]() ![]() ![]() ![]() |
Timo,
It sorts groups by GroupPriority if exists, then by GroupCaption if exists, and after that it sorts rows by rows values. Could you please share your piece of code which doesn't work correctly? -- WBR, Serge |
|
![]() |
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 |