Codejock Forums Homepage
Forum Home Forum Home > General > Code Snippets > C++ Code Snippets
  New Posts New Posts RSS Feed - Conditional groupingin report control
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Conditional groupingin report control

 Post Reply Post Reply
Author
Message
anshu16585 View Drop Down
Newbie
Newbie
Avatar

Joined: 12 March 2015
Location: United States
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote anshu16585 Quote  Post ReplyReply Direct Link To This Post Topic: Conditional groupingin report control
    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
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 1.063 seconds.