Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - How to select item added with AddRecordEx?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to select item added with AddRecordEx?

 Post Reply Post Reply
Author
Message
lviolette View Drop Down
Groupie
Groupie
Avatar

Joined: 17 March 2007
Location: United States
Status: Offline
Points: 60
Post Options Post Options   Thanks (0) Thanks(0)   Quote lviolette Quote  Post ReplyReply Direct Link To This Post Topic: How to select item added with AddRecordEx?
    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
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.094 seconds.