Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Detecting Grouping in Report Control
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Detecting Grouping in Report Control

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


Joined: 02 November 2004
Location: United States
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote grudy Quote  Post ReplyReply Direct Link To This Post Topic: Detecting Grouping in Report Control
    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.
Back to Top
olebed View Drop Down
Admin Group
Admin Group


Joined: 01 July 2014
Location: Ukraine
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote olebed Quote  Post ReplyReply Direct Link To This Post Posted: 17 October 2015 at 7:32am
Hi grudy

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


Regards,
 Oleksandr Lebed

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.141 seconds.