Print Page | Close Window

Showing the number of rows in Groupheader

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=3582
Printed Date: 22 December 2024 at 8:34am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Showing the number of rows in Groupheader
Posted By: cbickel
Subject: Showing the number of rows in Groupheader
Date Posted: 31 January 2006 at 4:33pm
Is there a way to show the number of child-rows in the group header caption ?

Thanks in advance for your reply.


-------------
Christian Bickel
Consolidate



Replies:
Posted By: sserge
Date Posted: 01 February 2006 at 4:20am
Hi Christian,

When you need to show a number of child rows for group rows, call your custom method with a piece of code like the following:

Dim pRow As ReportRow
Dim pGroupRow As ReportGroupRow
For Each pRow In wndReportControl.Rows
    If pRow.GroupRow Then
        Set pGroupRow = pRow
        pGroupRow.GroupCaption = pGroupRow.GroupCaption + _
                " (Child Rows: " + CStr(pRow.Childs.Count) + ")"
    End If
Next


See also http://forum.codejock.com/forum_posts.asp?TID=3568 - http://forum.codejock.com/forum_posts.asp?TID=3568

--
WBR,
Serge



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