Print Page | Close Window

Force GroupBy with code?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=15596
Printed Date: 29 September 2024 at 1:31pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Force GroupBy with code?
Posted By: unknow
Subject: Force GroupBy with code?
Date Posted: 11 November 2009 at 7:35pm
Hi. I would like to force the GroupBy on one particular column as soon as I intialize the reportcontrol.
 
The Sort order can be forced using CXTPReportColumns::SetSortColumn
 
Is there an equivalent function to force GroupBy ???



Replies:
Posted By: adrien
Date Posted: 12 November 2009 at 2:11am

to force grouping on column 1

m_Control.GetColumns()->GetGroupsOrder()->Add( m_Control.GetColumns()->GetAt(1) );


-------------
http://www.wingate.com - http://www.wingate.com


Posted By: unknow
Date Posted: 13 November 2009 at 12:42pm
Thankx!!



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