Print Page | Close Window

ChildsCount

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


Topic: ChildsCount
Posted By: flauzer
Subject: ChildsCount
Date Posted: 19 May 2006 at 5:34am

It's possible to have this feature in the next release ?:

When grouping, display also the Childs count number ?

ie

From: Codecock Exchange   (4)

   item1

   ...

   item4

with this property (for example...)

 wndReportControl.ShowChildsCount = true

Thanks

 

 

 

 

 




Replies:
Posted By: sserge
Date Posted: 23 May 2006 at 5:33pm
In the meanwhile you can see how it is proposed to be implemented there: http://forum.codejock.com/forum_posts.asp?TID=3582 - http://forum.codejock.com/forum_posts.asp?TID=3582

--
WBR,
Serge


Posted By: flauzer
Date Posted: 24 May 2006 at 2:36am

I've put this code in wndReportControl_BeforeDrawRow event...

 If Row.GroupRow Then
        Row.GroupCaption = Get_N_Field(Row.GroupCaption, 1, " (") + " (" + CStr(Row.Childs.Count) + ")"
    End If
   

.....but when I group one field, there are no refresh,...., so I must "scroll" manually the wndReportControl....

Thanks

 



Posted By: sserge
Date Posted: 24 May 2006 at 11:32am
Actually, your solution is very good, I would just propose to change it in a following way:

If Row.GroupRow Then
    Metrics.Text = Row.GroupCaption + " (" + CStr(Row.Childs.Count) + ")"
End If


--
WBR,
Serge


Posted By: flauzer
Date Posted: 24 May 2006 at 12:25pm

PERFECT!

Thanks




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