Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - How To remove All Columns?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How To remove All Columns?

 Post Reply Post Reply
Author
Message
fireflame View Drop Down
Groupie
Groupie


Joined: 15 March 2007
Status: Offline
Points: 21
Post Options Post Options   Thanks (0) Thanks(0)   Quote fireflame Quote  Post ReplyReply Direct Link To This Post 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?
Back to Top
FSauer View Drop Down
Groupie
Groupie
Avatar

Joined: 10 May 2006
Location: Germany
Status: Offline
Points: 96
Post Options Post Options   Thanks (0) Thanks(0)   Quote FSauer Quote  Post ReplyReply Direct Link To This Post 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), this
could be an Exception, if you have some Items in the Controls.
 
CXTPReportColumns* GetColumns();
CXTPReportColumn* GetAt(
    int nIndex
) const;
void Remove(
    CXTPReportColumn* pColumn
);
Back to Top
adrien View Drop Down
Senior Member
Senior Member


Joined: 30 April 2007
Location: New Zealand
Status: Offline
Points: 449
Post Options Post Options   Thanks (1) Thanks(1)   Quote adrien Quote  Post ReplyReply Direct Link To This Post Posted: 07 May 2007 at 8:24am
GetColumns()->Clear()

Adrien
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.188 seconds.