Print Page | Close Window

Delete column from ReportControl

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=14617
Printed Date: 28 September 2024 at 6:13am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Delete column from ReportControl
Posted By: GRLEX
Subject: Delete column from ReportControl
Date 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.



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