Print Page | Close Window

Force Edit of new row...

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=15758
Printed Date: 25 April 2024 at 12:11pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Force Edit of new row...
Posted By: ddlittle
Subject: Force Edit of new row...
Date Posted: 01 December 2009 at 4:15pm
I have a method that adds a line to a report control, and I want it to be selected and ready for edit - similar to adding a new folder in Explorer - but can't seem to find a sample (my add-a-record code follows).  Any ideas?

CXTPReportRecord* rec = new CXTPReportRecord;

InsertDefaultColumns(rec);

CString linName;

linName.Format("Line Number %d",m_nextLineNumber++);

rec->AddItem(new CXTPReportRecordItemText(linName));

m_OrgReport.AddRecord(rec);

m_OrgReport.Populate();




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