Print Page | Close Window

BUG: RemoveRecordEx and selection

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=23125
Printed Date: 29 August 2025 at 5:44pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: BUG: RemoveRecordEx and selection
Posted By: mgampi
Subject: BUG: RemoveRecordEx and selection
Date Posted: 07 September 2016 at 9:56am
Hi;

When calling RemoveRecordEx that is part of the selected Rows the Row is not removed from the selected rows collection!
In my case I'm selecting all rows (block selection) and then call RemoveRecordEx() for every row->GetRecord() record.
There is no Populate() call inbetween.
Afterwards when calling GetSelectedRows()->GetCount() it retuns the previous selected row count.
For me it seems as if the block selection information (if there is one) is not updated in this case.

Anyway, it leads to some strange side effects.
BTW: I'm using XTP 17.2

How can I fix this?


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

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022



Replies:
Posted By: olebed
Date Posted: 07 September 2016 at 12:54pm
Hello Martin,

http://forum.codejock.com/forum_posts.asp?TID=23109&title=solved-report-control-crash-on-removing-selected" rel="nofollow - I think this will be helpful.
Those changes relate to v17.2.

Regards,
 Oleksandr Lebed


Posted By: mgampi
Date Posted: 07 September 2016 at 3:14pm
Thanks,
I'll give it a try tomorrow, and come back with the results.


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

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022



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