Print Page | Close Window

Suggestion to enhance 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=21892
Printed Date: 25 April 2024 at 8:04pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Suggestion to enhance AddRecordEx
Posted By: mgampi
Subject: Suggestion to enhance AddRecordEx
Date 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 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017



Replies:
Posted By: mgampi
Date Posted: 12 October 2017 at 1:16am
Just checked v18.0.1.
Still not implemented! CryCryCryCryCry

-------------
Martin

Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017



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