![]()  | 
 
ShowItemsInGroups & Sort | 
 
    Post Reply  
   | 
  
| Author | |
   
   Michl  
   
   Senior Member  
   Joined: 14 September 2007 Status: Offline Points: 138  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Topic: ShowItemsInGroups & SortPosted: 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 
    | 
 |
![]()  | 
 |
   
   Michl  
   
   Senior Member  
   Joined: 14 September 2007 Status: Offline Points: 138  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 26 November 2008 at 4:41am | 
 
| 
   
    
   Does nobody have this problem???
    
   
   | 
 |
![]()  | 
 |
   
   znakeeye  
   
   Senior Member  
   Joined: 26 July 2006 Status: Offline Points: 1672  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 28 November 2008 at 5:51am | 
 
| 
   
    My advice: Make your own CXTPReportRecordItemText-derived class.  | 
 |
| 
   
     
     PokerMemento - http://www.pokermemento.com/
     
   
   | 
 |
![]()  | 
 |
   
   Michl  
   
   Senior Member  
   Joined: 14 September 2007 Status: Offline Points: 138  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     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. 
    | 
 |
![]()  | 
 |
    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  |