Print Page | Close Window

[SOLVED] Column header

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=19352
Printed Date: 27 April 2024 at 3:21pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [SOLVED] Column header
Posted By: yfphang
Subject: [SOLVED] Column header
Date Posted: 24 December 2011 at 5:55am

Hi, Just to find out how to return header caption when i click on the cell as below:

i click on 20, and how to return back 2011-12-07 ?

as i use in MSFlexGrid is just textmatrix(MSFlexGrid.row,MSFlexGrid.Col)

Thank for help.







Replies:
Posted By: Xander75
Date Posted: 04 January 2012 at 5:36am
Hi,

Try the following code:

Private Sub ReportControl_MouseDown(Button As Integer, Shift As Integer, x As Long, y As Long)
    Dim column As ReportColumn
    Set column = ReportControl.hitTest(x, y).column
   
    Debug.Print "Header: " & column.Caption
End Sub



-------------
Product: Xtreme SuitePro (ActiveX) v15.3.1
Platform: Windows 7 64-bit (SP1) Professional Edition
Languages: C#.Net using Visual Studio 2012 & Visual Basic 6.0 (SP6)


Posted By: yfphang
Date Posted: 06 January 2012 at 12:36am
Thank a lot, i got it.



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