Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - Detecting which column was single clicked
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Detecting which column was single clicked

 Post Reply Post Reply
Author
Message
Shawshank View Drop Down
Senior Member
Senior Member


Joined: 16 October 2005
Status: Offline
Points: 117
Post Options Post Options   Thanks (0) Thanks(0)   Quote Shawshank Quote  Post ReplyReply Direct Link To This Post Topic: Detecting which column was single clicked
    Posted: 02 February 2006 at 2:15pm
Is there a way to determine which column was single clicked on, like when sorting. I know that a SortOrderChanged event occurs but this doesn't reveal which column was single clicked. It seems like the only click event generated for a column is a right click event. The FocusedColumn property isn't reliable for this determination because it is possible that no Record or ReportRecordItem is selected.
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: 02 February 2006 at 2:30pm
Why not something like this?

Private Sub wndReportControl_SortOrderChanged()
    Debug.Print wndReportControl.SortOrder.Column(wndReportControl.SortOrder .Count - 1).Caption & " was just sorted"
End Sub
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.141 seconds.