Print Page | Close Window

How to show the group area

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=16228
Printed Date: 29 September 2024 at 11:28am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to show the group area
Posted By: Alex
Subject: How to show the group area
Date Posted: 19 February 2010 at 8:43am
Hello,
 
is there any magic to do before or after I call 'ShowGroupBy' ?
 
My ReportCtrl won't show me the group area ...
 
Are there any prerequisites ?
 
Regards,
Alex


-------------
www.ANKHOR.com

Product: Xtreme ToolkitPro version 15.2.1
Platform: Windows 7 Ultimate (64bit)
Language: Visual C++ 2005 / 2008 / 2010



Replies:
Posted By: mgampi
Date Posted: 19 February 2010 at 8:59am
Hi;

How do you initialize the control? Show me the code. I tried several different approaches and the control always shows the group by area.



-------------
Martin

Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017


Posted By: Alex
Date Posted: 19 February 2010 at 11:48am

Hi,
 
that's it :
 
GetReportHeader()->AllowColumnResize( TRUE );
GetReportHeader()->SetAutoColumnSizing( FALSE );
GetReportHeader()->AllowColumnRemove( FALSE );
SetGridStyle( FALSE, xtpReportGridSmallDots );
SetGridStyle( TRUE, xtpReportGridSmallDots );
GetPaintManager()->SetColumnStyle( xtpReportColumnFlat );
GetPaintManager()->SetTextFont( logfont );
SetMultipleSelection( true );
AddColumn( new CXTPReportColumn( COL_UNIQUEID , _T("UniqueID"), 40, TRUE, XTP_REPORT_NOICON, TRUE ) );
AddColumn( new CXTPReportColumn( COL_RESOURCE_NUMBER , _T("Resource Number"), 40, TRUE, XTP_REPORT_NOICON, TRUE ) );
AddColumn( new CXTPReportColumn( COL_LOADED_SIZE , _T("Loaded Size"), 40, TRUE, XTP_REPORT_NOICON, TRUE ) );
SetRowsCompareFunc( CompareResInfoRows );

ShowGroupBy();

Populate();

Alex



-------------
www.ANKHOR.com

Product: Xtreme ToolkitPro version 15.2.1
Platform: Windows 7 Ultimate (64bit)
Language: Visual C++ 2005 / 2008 / 2010


Posted By: mgampi
Date Posted: 19 February 2010 at 3:37pm
Hi;

I have no idea whats wrong, I use your code with latest (beta 13.2.2) report control code I found in this forum and it shows the group header. It must have something to do with your additional code.
Perhaps you should check what GetReportHeader()->GetGroupByHeight() returns. Must be > 0!



-------------
Martin

Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017



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