Print Page | Close Window

Permanently remove rows in Report Control

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=1003
Printed Date: 04 July 2025 at 9:48pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Permanently remove rows in Report Control
Posted By: spike
Subject: Permanently remove rows in Report Control
Date Posted: 30 July 2004 at 3:44pm

Has anyone figured out how to remove rows from the report control? It seems that when you call RemoveAt on the CXTPReportRows collection it will remove the row from the UI (but only after you call RedrawControl) but the next time Populate is called the deleted rows show back up like they are cached somewhere else in the control...

Any ideas?

Thanks

Craig




Replies:
Posted By: SuperMario
Date Posted: 06 August 2004 at 7:48am
Try using the RemoveAt on the ReportRecords collection using something like:

m_wndReport.GetRecords()->RemoveAt(x)

The you must call Populate to update the changes.  Each Row points to a Record, you must remove the record that the row points to, or it will just be drawn again.  At least this is how it works in the ActiveX version....



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