Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - ChildsCount
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

ChildsCount

 Post Reply Post Reply
Author
Message
flauzer View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 December 2003
Location: Italy
Status: Offline
Points: 108
Post Options Post Options   Thanks (0) Thanks(0)   Quote flauzer Quote  Post ReplyReply Direct Link To This Post Topic: ChildsCount
    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

 

 

 

 

 

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: 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

--
WBR,
Serge
Back to Top
flauzer View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 December 2003
Location: Italy
Status: Offline
Points: 108
Post Options Post Options   Thanks (0) Thanks(0)   Quote flauzer Quote  Post ReplyReply Direct Link To This Post 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

 

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: 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
Back to Top
flauzer View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 December 2003
Location: Italy
Status: Offline
Points: 108
Post Options Post Options   Thanks (0) Thanks(0)   Quote flauzer Quote  Post ReplyReply Direct Link To This Post Posted: 24 May 2006 at 12:25pm

PERFECT!

Thanks

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.688 seconds.