Print Page | Close Window

Detecting which column was single clicked

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=3592
Printed Date: 29 April 2024 at 6:18am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Detecting which column was single clicked
Posted By: Shawshank
Subject: Detecting which column was single clicked
Date 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.



Replies:
Posted By: SuperMario
Date 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



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