Print Page | Close Window

How To remove All Columns?

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=6740
Printed Date: 22 November 2024 at 8:02am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How To remove All Columns?
Posted By: fireflame
Subject: How To remove All Columns?
Date Posted: 26 March 2007 at 10:03pm

  Is there any function like

  GetReportCtrl().GetRows()->RemoveAll();
to remove all the columns?



Replies:
Posted By: FSauer
Date 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
);


Posted By: adrien
Date Posted: 07 May 2007 at 8:24am
GetColumns()->Clear()

Adrien



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