Print Page | Close Window

Getting the GroupRow from a Row

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=3495
Printed Date: 11 May 2024 at 4:10pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Getting the GroupRow from a Row
Posted By: Shawshank
Subject: Getting the GroupRow from a Row
Date Posted: 10 January 2006 at 10:47am

Is it possible to obtain the GroupRow and thus the GroupRowCaption when all one has is the Row? It certainly seems like it should be possible but I see now way to do so. I have noted the ReportGroupRow class but I'm not sure how to initialize it using VB. Something like:

Dim GrpRw as ReportGroupRow

Set GrpRw = New Row.GroupRow

Obviously that doesn't work. Is the ReportGroupRow class what I need to access the Row's GroupCaption. If so, how do I initialize it the ReportGroupRow class.




Replies:
Posted By: ianp
Date Posted: 12 January 2006 at 11:56am

Try this:

    If Not Row.ParentRow Is Nothing Then
      Debug.Print Row.ParentRow.GroupCaption
    End If




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