![]() |
How To remove All Columns? |
Post Reply
|
| Author | |
fireflame
Groupie
Joined: 15 March 2007 Status: Offline Points: 21 |
Post Options
Thanks(0)
Quote Reply
Topic: How To remove All Columns?Posted: 26 March 2007 at 10:03pm |
|
Is there any function like GetReportCtrl().GetRows()->RemoveAll();
to remove all the columns?
|
|
![]() |
|
FSauer
Groupie
Joined: 10 May 2006 Location: Germany Status: Offline Points: 96 |
Post Options
Thanks(0)
Quote Reply
Posted: 13 April 2007 at 2:43am |
|
Hi. If you only want to hide the Header you can use the ShowHeader(FALSE) of the control. CXTPReportControl::ShowHeader(FALSE); If you really want to remove all Columns, i would do it with the following functions in a loop: (But note (I think), thiscould be an Exception, if you have some Items in the Controls.
CXTPReportColumns* GetColumns();
CXTPReportColumn* GetAt(int nIndex ) const; void Remove( CXTPReportColumn* pColumn ); |
|
![]() |
|
adrien
Senior Member
Joined: 30 April 2007 Location: New Zealand Status: Offline Points: 449 |
Post Options
Thanks(1)
Quote Reply
Posted: 07 May 2007 at 8:24am |
|
GetColumns()->Clear()
Adrien |
|
![]() |
|
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 |