Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Permanently remove rows in Report Control
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Permanently remove rows in Report Control

 Post Reply Post Reply
Author
Message
spike View Drop Down
Groupie
Groupie


Joined: 13 May 2003
Location: United States
Status: Offline
Points: 48
Post Options Post Options   Thanks (0) Thanks(0)   Quote spike Quote  Post ReplyReply Direct Link To This Post Topic: Permanently remove rows in Report Control
    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

Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post 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....
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 4.766 seconds.