Print Page | Close Window

Updating row text in CXTPReportControl

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=7931
Printed Date: 13 November 2025 at 2:30pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Updating row text in CXTPReportControl
Posted By: dennisV
Subject: Updating row text in CXTPReportControl
Date Posted: 04 September 2007 at 7:17am
This is probably something easy, but I can't find any way to accomplish this at the moment 

I have a report control with items and a user can edit a record (not in-place) and then I want to update the item's row with the new values.

How can I do that?

Thanks in advance!


-------------
// W7 64 Ultimate SP1
// VS 2008
// CodeJock 16.2.3 (MFC)



Replies:
Posted By: mgampi
Date Posted: 04 September 2007 at 7:33am

Hi,

Set the caption of the current CXTPReportRecord item(s) and then call report.Populate()

CXREventConfigRecord* pRecord = DYNAMIC_DOWNCAST(CXREventConfigRecord, m_ReportEventSystems.GetFocusedRow()->GetRecord());
ASSERT(pRecord!=0);
if (pRecord==0)
   return;
 
pRecord->GetItem(xx)->SetCaption("New Value");
m_ReportEventSystems.Populate();
 
Thats it.
 


-------------
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022


Posted By: dennisV
Date Posted: 04 September 2007 at 7:45am
Thank you Martin - that works like a charm! 

-------------
// W7 64 Ultimate SP1
// VS 2008
// CodeJock 16.2.3 (MFC)



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