![]() |
Updating row text in CXTPReportControl |
Post Reply
|
| Author | |
dennisV
Senior Member
Joined: 07 October 2004 Location: Australia Status: Offline Points: 242 |
Post Options
Thanks(0)
Quote Reply
Topic: Updating row text in CXTPReportControlPosted: 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) |
|
![]() |
|
mgampi
Senior Member
Joined: 14 July 2003 Status: Offline Points: 1210 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
dennisV
Senior Member
Joined: 07 October 2004 Location: Australia Status: Offline Points: 242 |
Post Options
Thanks(0)
Quote Reply
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) |
|
![]() |
|
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 |