Delete column from ReportControl |
Post Reply |
Author | |
GRLEX
Groupie Joined: 17 February 2009 Location: Ukraine Status: Offline Points: 27 |
Post Options
Thanks(0)
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. |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |