Print Page | Close Window

Conditional groupingin report control

Printed From: Codejock Forums
Category: General
Forum Name: C++ Code Snippets
Forum Description: C++ Code Snippets
URL: http://forum.codejock.com/forum_posts.asp?TID=22555
Printed Date: 21 November 2024 at 7:53am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Conditional groupingin report control
Posted By: anshu16585
Subject: Conditional groupingin report control
Date Posted: 12 March 2015 at 2:19pm
Hi All,
I am trying to use conditional grouping in a report control based on the count. So if I am grouping based on phone numbers and if the count of the rows with same phone number is more that one then only I will group them otherwise show those rows as independent ones.
I tried to use the following method:
pReportCtrl->GetColumns()->GetGroupsOrder()->Add(pReportCtrl->GetColumns()->GetAt(0));

but this is grouping all the rows even if the count is 1.

Can someone suggest me what to do. let me know if you need more information.

thanks in advance.


-------------
Anshuman



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