Grouped Row Caption |
Post Reply |
Author | |
shagge22
Newbie Joined: 21 November 2006 Status: Offline Points: 14 |
Post Options
Thanks(0)
Posted: 05 July 2007 at 2:33pm |
I am using report control v. 10.3. I have noticed that when I update the group caption, the updated text disappears when the populate event is called, why? I have been able to get around the issue, but is there an easy way to keep this from occurring? Here is the code that I am using to perform the group caption update...
Dim sDoc As String Dim rRow As ReportRow Dim rGrp As ReportGroupRow For Each rRow In Rpt_List.Rows If rRow.GroupRow Then Set rGrp = rRow If rGrp.Childs.count = 1 Then sDoc = " Document" Else sDoc = " Documents" End If rGrp.GroupCaption = rGrp.GroupCaption + " (" + CStr(rGrp.Childs.count) + sDoc + ")" End If Next Rpt_List.Redraw |
|
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
Hi,
Take a look at http://forum.codejock.com/forum_posts.asp?TID=4246 As you can see there, the main suggestion is to handle _BeforeDrawRow event and add there a code like:
-- WBR, Serge |
|
shagge22
Newbie Joined: 21 November 2006 Status: Offline Points: 14 |
Post Options
Thanks(0)
|
Thanks for the code. That works great.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |