![]() |
Identifying a GroupRow |
Post Reply ![]() |
Author | |
Fabian ![]() Senior Member ![]() ![]() Joined: 22 November 2004 Location: Switzerland Status: Offline Points: 336 |
![]() ![]() ![]() ![]() ![]() 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 |
|
![]() |
|
SuperMario ![]() Senior Member ![]() ![]() Joined: 14 February 2004 Status: Offline Points: 18057 |
![]() ![]() ![]() ![]() ![]() |
Rows have a GroupRow property you can check.
|
|
![]() |
|
Fabian ![]() Senior Member ![]() ![]() Joined: 22 November 2004 Location: Switzerland Status: Offline Points: 336 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
|
SuperMario ![]() Senior Member ![]() ![]() Joined: 14 February 2004 Status: Offline Points: 18057 |
![]() ![]() ![]() ![]() ![]() |
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 :)
|
|
![]() |
|
Aaron ![]() Senior Member ![]() Joined: 29 January 2008 Status: Offline Points: 2192 |
![]() ![]() ![]() ![]() ![]() |
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.... |
|
![]() |
|
Fabian ![]() Senior Member ![]() ![]() Joined: 22 November 2004 Location: Switzerland Status: Offline Points: 336 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
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 |