Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Delete column from ReportControl
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Delete column from ReportControl

 Post Reply Post Reply
Author
Message
GRLEX View Drop Down
Groupie
Groupie
Avatar

Joined: 17 February 2009
Location: Ukraine
Status: Offline
Points: 27
Post Options Post Options   Thanks (0) Thanks(0)   Quote GRLEX Quote  Post ReplyReply Direct Link To This Post Topic: Delete column from ReportControl
    Posted: 25 June 2009 at 11:43am
Good day. I'm working with CXTPReportControl in my project and have a trouble with deleting / adding column.
When my application start i create a CXTPReportControl. Its contains columns and records with checkboxes and comboboxes. The number of columns reading from file. Than i want to add a new column into report on button click - it works fine. Trouble begins when i want to delete some column.
For delete i use such code:
GetColumns()->Remove(GetColumns()->Find(sNameColumnForDelete));
Column is dissapeared but then, when i want to add new column again column is appeared but work strange. When i check checkbox or click on combobox,
focus set's on column, wich is on deleted column place.
I debug my application and saw that visual report and report in code - differs. On visual part report paints fine, but when debugging i saw that deleted column is present in report but last column is shifted. I check all indexes in my code - but all is fine.

Can somebody help me with this. Maybe some simple code, how delete / add column with records in report.

Great thank's. Alex Sherbak.
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 0.141 seconds.