Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - ShowItemsInGroups & Sort
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

ShowItemsInGroups & Sort

 Post Reply Post Reply
Author
Message
Michl View Drop Down
Senior Member
Senior Member


Joined: 14 September 2007
Status: Offline
Points: 138
Post Options Post Options   Thanks (0) Thanks(0)   Quote Michl Quote  Post ReplyReply Direct Link To This Post Topic: ShowItemsInGroups & Sort
    Posted: 24 November 2008 at 5:20am
Hi
 
How should work the mode ShowItemsInGroup?
If a user click on a column, do this only a group action or group and sort action?
I expect as user the second.
 
My problem is, that we have a column with values in long date format (date+time). If the user click on header for this column, the column should only be group by date. So I overwrite CompareGroupCaption. This works fine.
 
Date : 4-24-2008
----------------------------------------
4-24-2008 7:56am
4-24-2008 9:23pm
4-24-2008 4:22am
 
But I expect that several rows with same date would be sort by time, too (Compare() are not overwritten of CXTPReportRecordItemDateTime).
 
If I turn off ShowItemsInGroups and sort the column manually and then group it, it works. I found the problem in CXTPReportHeader::OnLButtonUp. The column is not marked as sorted. But the column has a sorting symbol in the header...
 
If that is a bug, I need a update as soon as possible to release an update for our software!
 
thanks
Back to Top
Michl View Drop Down
Senior Member
Senior Member


Joined: 14 September 2007
Status: Offline
Points: 138
Post Options Post Options   Thanks (0) Thanks(0)   Quote Michl Quote  Post ReplyReply Direct Link To This Post Posted: 26 November 2008 at 4:41am
Does nobody have this problem???
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 28 November 2008 at 5:51am

My advice: Make your own CXTPReportRecordItemText-derived class.

PokerMemento - http://www.pokermemento.com/
Back to Top
Michl View Drop Down
Senior Member
Senior Member


Joined: 14 September 2007
Status: Offline
Points: 138
Post Options Post Options   Thanks (0) Thanks(0)   Quote Michl Quote  Post ReplyReply Direct Link To This Post Posted: 28 November 2008 at 7:28am
I already do subclass the class CXTPReportRecordItemDate. But if CompareGroupCaption is equal (=0), Codejock don't call Compare after the item is assigned to a group!
 
I think this it is a design mistake.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.203 seconds.