Print Page | Close Window

Detecting Grouping in Report Control

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=22761
Printed Date: 05 October 2024 at 5:27am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Detecting Grouping in Report Control
Posted By: grudy
Subject: Detecting Grouping in Report Control
Date Posted: 15 October 2015 at 9:04am
Is there a simple way (single call) to detect that rows are grouped in the Report Control?

I have resorted to this...
if ( (IsGroupByVisible()) || 
   ( ( GetRows() ) && ( GetRows()->GetAt(0) ) && ( GetRows()->GetAt(0)->IsGroupRow() ) ) )


While I realize this isn't difficult, it just seems like there should be some single method to indicate that grouping is on.... but I haven't found it.



Replies:
Posted By: olebed
Date Posted: 17 October 2015 at 7:32am
Hi grudy

Use
if( CXTPReportControl::GetColumns()->GetGroupsOrder()->GetCount() > 0 )
{
}


Regards,
 Oleksandr Lebed




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