How to show the group area |
Post Reply |
Author | |
Alex
Groupie Joined: 12 May 2004 Status: Offline Points: 54 |
Post Options
Thanks(0)
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 |
|
mgampi
Senior Member Joined: 14 July 2003 Status: Offline Points: 1198 |
Post Options
Thanks(0)
|
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 |
|
Alex
Groupie Joined: 12 May 2004 Status: Offline Points: 54 |
Post Options
Thanks(0)
|
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 |
|
mgampi
Senior Member Joined: 14 July 2003 Status: Offline Points: 1198 |
Post Options
Thanks(0)
|
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 |
|
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 |