Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - [SOLVED] Column header
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

[SOLVED] Column header

 Post Reply Post Reply
Author
Message Reverse Sort Order
yfphang View Drop Down
Newbie
Newbie


Joined: 24 December 2011
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote yfphang Quote  Post ReplyReply Direct Link To This Post Topic: [SOLVED] Column header
    Posted: 06 January 2012 at 12:36am
Thank a lot, i got it.
Back to Top
Xander75 View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 April 2007
Status: Offline
Points: 353
Post Options Post Options   Thanks (0) Thanks(0)   Quote Xander75 Quote  Post ReplyReply Direct Link To This Post 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)
Back to Top
yfphang View Drop Down
Newbie
Newbie


Joined: 24 December 2011
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote yfphang Quote  Post ReplyReply Direct Link To This Post 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.




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.221 seconds.