Report control bug ? |
Post Reply |
Author | |
Arnie
Newbie Joined: 04 March 2005 Status: Offline Points: 4 |
Post Options
Thanks(0)
Posted: 18 March 2005 at 5:55am |
Hi, In my control the users can rightclick the column header and select remove column. Then the user can add a new column. Inside GetItem: The problem is that for the last column with nItemindex 3, the item is not found in m_arrItems since it contains items in indexes 0,1,2. The result is that this column only has blank items. Any workaround/fix for this ? |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Seems you have bug in your code. There can't be situation with 0,1,3 indexes. If user remove column, m_bVisible of CXTPReportColumn must be set as FALSE. it doen't remove from array of columns. Please attach what additional code you added for Remove operation. |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Arnie
Newbie Joined: 04 March 2005 Status: Offline Points: 4 |
Post Options
Thanks(0)
|
When i remove a column, i do: In CXTPReportColumns::Remove, the column is just removed from the array, the other columns indexes are not adjusted, so after remove, I can see in the debugger Watch window that |
|
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
Arnie,
You should only locate the column and call pColumn->SetVisible(FALSE) in order to hide it. Removing a column from the collection automatically means corresponding changes in the Report Record structure. -- Regards, Sergei |
|
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 |