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

UpdateRecord Method

 Post Reply Post Reply
Author
Message
GRLEX View Drop Down
Groupie
Groupie
Avatar

Joined: 17 February 2009
Location: Ukraine
Status: Offline
Points: 27
Post Options Post Options   Thanks (0) Thanks(0)   Quote GRLEX Quote  Post ReplyReply Direct Link To This Post Topic: UpdateRecord Method
    Posted: 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.
Back to Top
GRLEX View Drop Down
Groupie
Groupie
Avatar

Joined: 17 February 2009
Location: Ukraine
Status: Offline
Points: 27
Post Options Post Options   Thanks (0) Thanks(0)   Quote GRLEX Quote  Post ReplyReply Direct Link To This Post 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.
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.168 seconds.