Print Page | Close Window

How to select item added with AddRecordEx?

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=17851
Printed Date: 16 June 2024 at 11:08am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to select item added with AddRecordEx?
Posted By: lviolette
Subject: How to select item added with AddRecordEx?
Date Posted: 09 February 2011 at 3:30pm
I'm adding rows on the fly while the user is active in the application.
Therefore, I'm using the AddRowEx and RedrawControl method (rather than populate).
 
The thing is, there are certain times when I want to add a row AND select it.  AddRowEx deals with CXTPReportRecord pionters.  All the selection methods seem to use CXTPReportRow pointers.
 
Is there an easy way to go from a CXTPReportRecord to it's corresponding CXTPReportRow?  Or do I need to traverse all the CXTPReportRows, call GetRecord and compare it to my record to find the corresponding row?
 


-------------
L. Violette
Monolith
www.lith.com
Xtreme Toolkit Pro v22.1.0



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