Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - all columns have same value
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

all columns have same value

 Post Reply Post Reply
Author
Message
vjedlicka View Drop Down
Senior Member
Senior Member


Joined: 04 September 2007
Status: Offline
Points: 122
Post Options Post Options   Thanks (0) Thanks(0)   Quote vjedlicka Quote  Post ReplyReply Direct Link To This Post Topic: all columns have same value
    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
Back to Top
vjedlicka View Drop Down
Senior Member
Senior Member


Joined: 04 September 2007
Status: Offline
Points: 122
Post Options Post Options   Thanks (0) Thanks(0)   Quote vjedlicka Quote  Post ReplyReply Direct Link To This Post Posted: 06 June 2016 at 6:54am
problem fixed
Thank you
Vaclav
---------------------
ToolkitPro 20.1.0
VS2010-2022, Windows 11
Back to Top
xang View Drop Down
Groupie
Groupie


Joined: 01 January 2013
Status: Offline
Points: 36
Post Options Post Options   Thanks (0) Thanks(0)   Quote xang Quote  Post ReplyReply Direct Link To This Post 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++
Back to Top
vjedlicka View Drop Down
Senior Member
Senior Member


Joined: 04 September 2007
Status: Offline
Points: 122
Post Options Post Options   Thanks (0) Thanks(0)   Quote vjedlicka Quote  Post ReplyReply Direct Link To This Post Posted: 19 June 2016 at 2:04pm
The columns had the same ID.
Thank you
Vaclav
---------------------
ToolkitPro 20.1.0
VS2010-2022, Windows 11
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.156 seconds.