|  | 
| Hiding sorted field in group header | 
| Post Reply   | 
| Author | |
| tobi   Senior Member     Joined: 09 September 2004 Location: Germany Status: Offline Points: 451 |  Post Options  Thanks(0)  Quote  Reply  Topic: Hiding sorted field in group header 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 |  Post Options  Thanks(0)  Quote  Reply  Posted: 23 May 2006 at 5:26pm | 
| 
   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 |  Post Options  Thanks(0)  Quote  Reply  Posted: 02 June 2006 at 4:45am | 
| 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 |  Post Options  Thanks(0)  Quote  Reply  Posted: 04 June 2006 at 8:17am | 
| 
   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 |