Sorting bug if GetGroupCaption overridden |
Post Reply |
Author | |
Warren
Groupie Joined: 23 February 2005 Status: Offline Points: 64 |
Post Options
Thanks(0)
Posted: 16 September 2005 at 2:48pm |
If you override GetGroupCaption (e.g. to return “2003” for all dates in the
year 2003 for a date) this will cause the sorting to be incorrect when you group
by more than one column. (where the column with the overridden GetGroupCaption
is the primary group). CXTPReportRecordItem::CompareGroupCaption is: return Compare(pColumn, pItem);
return GetGroupCaption(pColumn).Collate( pItem->GetGroupCaption(pColumn) );
be changed
from: return Compare(pColumn, pItem); to return GetGroupCaption(pColumn).Collate( pItem->GetGroupCaption(pColumn) Hopefully, what I’m suggesting
is correct - can someone from Codejock please comment on this. Thanks
|
|
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 |