![]()  | 
 
UpdateRecord Method | 
 
    Post Reply  
   | 
  
| Author | |
   
   GRLEX  
   
   Groupie  
   Joined: 17 February 2009 Location: Ukraine Status: Offline Points: 27  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Topic: UpdateRecord MethodPosted: 31 July 2012 at 6:16am  | 
 
| 
   
    
   Hi. I have a ReportControl with many records. This records is grouped by 1 column, but i dont need sort by group headers. I turned off sorting like this: 
   
  grid.GetReportHeader()->AllowColumnSort(FALSE); CXTPReportColumn * pColumnGroup = grid.GetColumns()->GetAt(IDX_COLUMN_FOR_SORT);  pColumnGroup->SetAutoSortWhenGrouped(FALSE); pColumnGroup->SetSortable(FALSE);  grid.Populate(); All works fine. But when i do UpdateRecord method for some record grid is sorting by group headers. How can i turned it out? Thank's for answers. 
    | 
 |
![]()  | 
 |
   
   GRLEX  
   
   Groupie  
   Joined: 17 February 2009 Location: Ukraine Status: Offline Points: 27  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 13 August 2012 at 5:30am | 
 
| 
   
    
   Thank's for help. I have fixed this issue. Insteed of UpdateRecord() method i used BeginUpdate() and EndUpdate() methods of report control. 
   
  grid.BeginUpdate(); do something with records grid.EndUpdate(); EndUpdate() method will repaint all that was added/changed after BeginUpdate() method. Maybe this will help someone. 
    | 
 |
![]()  | 
 |
    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  |