Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Updating row text in CXTPReportControl
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Updating row text in CXTPReportControl

 Post Reply Post Reply
Author
Message
dennisV View Drop Down
Senior Member
Senior Member
Avatar

Joined: 07 October 2004
Location: Australia
Status: Offline
Points: 242
Post Options Post Options   Thanks (0) Thanks(0)   Quote dennisV Quote  Post ReplyReply Direct Link To This Post Topic: Updating row text in CXTPReportControl
    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)
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1210
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
dennisV View Drop Down
Senior Member
Senior Member
Avatar

Joined: 07 October 2004
Location: Australia
Status: Offline
Points: 242
Post Options Post Options   Thanks (0) Thanks(0)   Quote dennisV Quote  Post ReplyReply Direct Link To This Post 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)
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.063 seconds.