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

Identifying a GroupRow

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

Joined: 22 November 2004
Location: Switzerland
Status: Offline
Points: 336
Post Options Post Options   Thanks (0) Thanks(0)   Quote Fabian Quote  Post ReplyReply Direct Link To This Post Topic: Identifying a GroupRow
    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
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 28 February 2010 at 1:26pm
Rows have a GroupRow property you can check.
Back to Top
Fabian View Drop Down
Senior Member
Senior Member
Avatar

Joined: 22 November 2004
Location: Switzerland
Status: Offline
Points: 336
Post Options Post Options   Thanks (0) Thanks(0)   Quote Fabian Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post 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 :)
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post 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....
Back to Top
Fabian View Drop Down
Senior Member
Senior Member
Avatar

Joined: 22 November 2004
Location: Switzerland
Status: Offline
Points: 336
Post Options Post Options   Thanks (0) Thanks(0)   Quote Fabian Quote  Post ReplyReply Direct Link To This Post 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
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.250 seconds.