Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Suggestion to enhance AddRecordEx
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Suggestion to enhance AddRecordEx

 Post Reply Post Reply
Author
Message
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 991
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Topic: Suggestion to enhance AddRecordEx
    Posted: 23 September 2013 at 3:42pm
Hi;

Could you please change the return type of CXTPReportControl::AddRecordEx() from
virtual void CXTPReportControl::AddRecordEx(...)

to
virtual CXTPReportRow* CXTPReportControl::AddRecordEx(...)

and return the newly created row!
Searching for the row(s) is no real option when considering performance (CXTPReportRows::Find(CXTPReportRecord*) uses a linear search to find the record. Inserting four records in a collection of 1000 rows results in worst case in 4000 compare operations).

This enhancement would ease the task of selecting rows that are inserted into the control using that way without any additional search run.
I don't want to duplicate the code of AddRecordEx() to get the same result.


Martin

Product: Xtreme Toolkit v 15.3.1, new Projects v 17.2
Platform: Windows 8.1 (64bit)
Language: VC++ 2015 Upd3
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 991
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Posted: 12 October 2017 at 1:16am
Just checked v18.0.1.
Still not implemented! CryCryCryCryCry
Martin

Product: Xtreme Toolkit v 15.3.1, new Projects v 17.2
Platform: Windows 8.1 (64bit)
Language: VC++ 2015 Upd3
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0.156 seconds.