Print Page | Close Window

UpdateRecord Method

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=20005
Printed Date: 16 November 2024 at 1:50pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: UpdateRecord Method
Posted By: GRLEX
Subject: UpdateRecord Method
Date 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.



Replies:
Posted By: GRLEX
Date 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.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net