Print Page | Close Window

all columns have same value

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=23040
Printed Date: 30 April 2024 at 6:20am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: all columns have same value
Posted By: vjedlicka
Subject: all columns have same value
Date Posted: 06 June 2016 at 6:30am
I have a CXTPReportControl with 2 columns.
The result of this code snippet is a grid with 2 columns with "A" everywhere. "B" is not displayed anywhere.


POSITION pos = l_list_CElems.GetHeadPosition();
while (pos != NULL)
{
CElem * const pElem = l_list_CElems.GetNext(pos);

CXTPReportRecord* pRecord = m_wndReport.AddRecord(new CXTPReportRecord()); 
pRecord->AddItem(new CXTPReportRecordItemText(_T("A")));
pRecord->AddItem(new CXTPReportRecordItemText(_T("B")));
}




-------------
Thank you
Vaclav
---------------------
ToolkitPro 20.1.0
VS2010-2022, Windows 11



Replies:
Posted By: vjedlicka
Date Posted: 06 June 2016 at 6:54am
problem fixed

-------------
Thank you
Vaclav
---------------------
ToolkitPro 20.1.0
VS2010-2022, Windows 11


Posted By: xang
Date Posted: 06 June 2016 at 10:57am
Can you share your fixed solution for other developers :)?

-------------
Product: Xtreme Toolkit Pro (MFC) version 18.0.1 (with 1-year maintenance)
Platform: Windows 10 RS2 (x64)
Language: Visual C++


Posted By: vjedlicka
Date Posted: 19 June 2016 at 2:04pm
The columns had the same ID.

-------------
Thank you
Vaclav
---------------------
ToolkitPro 20.1.0
VS2010-2022, Windows 11



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