Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - Showing the number of rows in Groupheader
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Showing the number of rows in Groupheader

 Post Reply Post Reply
Author
Message
cbickel View Drop Down
Newbie
Newbie


Joined: 31 January 2006
Location: Austria
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote cbickel Quote  Post ReplyReply Direct Link To This Post Topic: Showing the number of rows in Groupheader
    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
Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post 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

--
WBR,
Serge
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.188 seconds.