Print Page | Close Window

Help! CXTPReportRecords::InsertAt is useless:(

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=16856
Printed Date: 29 September 2024 at 9:27am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Help! CXTPReportRecords::InsertAt is useless:(
Posted By: owyo
Subject: Help! CXTPReportRecords::InsertAt is useless:(
Date Posted: 21 June 2010 at 12:02am
Everytime I create a CXTPReportRecord with follow codes:
CXTPReportRecord* pRecord = new CXTPReportRecord();
Then add some items:
pRecord->AddItem(new CXTPReportRecordItemText(...));

At last I try to insert the record to the position I want, but failed always.
int nIndex = 0;
//CXTPReportControl m_wndReport;
m_wndReport.GetRecords()->InsertAt(nIndex, pRecord);

So if I want to insert the record to the appointed position, how should I do?
Thanks very much.



Replies:
Posted By: owyo
Date Posted: 22 June 2010 at 11:10pm
Anybody help me?


Posted By: owyo
Date Posted: 23 June 2010 at 2:43am


Posted By: GRLEX
Date Posted: 29 June 2010 at 4:21am
When you try to insert record into grid are you sure  that grid is not empty? Are you sure that you added column there?
Pls post more code from your project. And i'll try to help you.



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