Print Page | Close Window

Group Item Count...

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=12653
Printed Date: 20 July 2025 at 12:32pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Group Item Count...
Posted By: mozaheb
Subject: Group Item Count...
Date Posted: 11 November 2008 at 5:38am
Hello

How Change Group Caption in RC for name and count?

Thank you



Replies:
Posted By: joeliner
Date Posted: 12 November 2008 at 5:27pm
To change group caption, try this:

    Set Item = Record.AddItem("")
    Item.GroupCaption = customname

for group item count, in beforeDrawRow, try this:
If Row.GroupRow Then
    If Row.Childs.Count > 1 Then
    Metrics.Text = Row.GroupCaption + " (" + CStr(Row.Childs.Count) + ") "
    Else
    Metrics.Text = Row.GroupCaption + " (" + CStr(Row.Childs.Count) + ") "
    End If
End If


-------------
Product: Xtreme SuitePro (ActiveX) version 13.1
Platform: Windows XP SP 3
Language: Visual Basic 6 SP6


Posted By: mozaheb
Date Posted: 13 November 2008 at 8:23am
Thank's joeliner 



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