Print Page | Close Window

HeaderRecord doubleclick

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=18859
Printed Date: 26 July 2025 at 10:08am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: HeaderRecord doubleclick
Posted By: McKloony
Subject: HeaderRecord doubleclick
Date Posted: 24 August 2011 at 5:57am
How it is possible to find out, if a ReportRecordItem ist from the HeaderRecors or from the normal Recors, if i doubleclick on it? Smile

-------------
Product: Xtreme SuitePro (ActiveX) 16.2.5

Platform: XP / Windows 7

Language: Visual Basic 6.0 SP6



Replies:
Posted By: Willowmaster
Date Posted: 24 August 2011 at 6:46am
Something like this?:

Private Sub ReportControl1_RowDblClick(ByVal Row As XtremeReportControl.IReportRow, ByVal Item As XtremeReportControl.IReportRecordItem)
Dim blnFound As Boolean
Dim objHeaderRecord As XtremeReportControl.ReportRecord
    For Each objHeaderRecord In ReportControl1.HeaderRecords
        If Row.Record Is objHeaderRecord Then
            blnFound = True
            Exit For
        End If
    Next
    If blnFound Then
        'Do stuff.
    End If
End Sub



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

Platform: Windows XP (32bit) - SP 3 (on VMWare)

Language: Visual Basic 6.0





Posted By: McKloony
Date Posted: 24 August 2011 at 7:55am
Dank je wel, Willowmaster
 
but if you loop all HeaderRecords, you dont have to check if the Item is a HeaderRecord ?
 


-------------
Product: Xtreme SuitePro (ActiveX) 16.2.5

Platform: XP / Windows 7

Language: Visual Basic 6.0 SP6


Posted By: Willowmaster
Date Posted: 25 August 2011 at 2:12am
Wink
 
You doubleclick on an item which belongs to a row. And the row has a record. That means you don't have to check the item. But i'm struggling with these definitions too so I can't say for 100% sure. Also If you use a treestructure you have to search for the child nodes of the headerrecords recursively.


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

Platform: Windows XP (32bit) - SP 3 (on VMWare)

Language: Visual Basic 6.0





Posted By: ABuenger
Date Posted: 15 September 2011 at 11:45pm
Hi,

added for next release: Row.Section.Index.

You can use the following constants for the index:

xtpReportSectionHeader
xtpReportSectionBody
xtpReportSectionFooter

Andre



-------------
Codejock support



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