Print Page | Close Window

Identifying a GroupRow

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=16310
Printed Date: 15 November 2024 at 8:26am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Identifying a GroupRow
Posted By: Fabian
Subject: Identifying a GroupRow
Date Posted: 28 February 2010 at 11:06am
Hello all,
 
Does anybody have a method to identify a grouprow. This rows have no record attached and in events 'item' is Nothing. I need some possibility to identify a grouprow e.g. to decide which one was clicked on.
 
 
Thanks in advance for any idea
 
System: VB6/SP6 Suite version 13.2
 


-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.3

Platform: Windows 7 (32bit)

Language: Visual Basic 6.0 / SP6



Replies:
Posted By: SuperMario
Date Posted: 28 February 2010 at 1:26pm
Rows have a GroupRow property you can check.


Posted By: Fabian
Date Posted: 01 March 2010 at 11:13am
Hi SuperMario
 
Shure, it indicates a group row in general. But how could I check for the column that creates the group row (e.g. for differentiate the behaviour of right mouse clicks)?


-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.3

Platform: Windows 7 (32bit)

Language: Visual Basic 6.0 / SP6


Posted By: SuperMario
Date Posted: 01 March 2010 at 1:33pm
SO you mean just right-clicking a row?  Hittest will return a row and you can test with GroupRow property...the report sample show this too :)


Posted By: Aaron
Date Posted: 01 March 2010 at 4:04pm
Hi,
 
I think Fabian means something else. Get the column of the grouprow when rightclicking grouprow
 
Maybe something like this:
 
               Dim xtremeReportRow As XtremeReportControl.ReportGroupRow
               Set xtremeReportRow = Me.wndReportControl.HitTest(X, Y).Row
                    If xtremeReportRow.GroupRow Then
                        MsgBox Me.wndReportControl.GroupsOrder(xtremeReportRow.Childs(0).RowTreeLevel - 1).ItemIndex
                    End If
 
 
Hope this helps
 
 
 


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....


Posted By: Fabian
Date Posted: 02 March 2010 at 9:05am
Thanks Aaron,
 
Yes that helps. The first column I add to the GroupsOrder can be identified as RowTreelevel=0, the second =1 and so on!
 
  


-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.3

Platform: Windows 7 (32bit)

Language: Visual Basic 6.0 / SP6



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