Print Page | Close Window

How can I tell which column Header was 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=8621
Printed Date: 10 November 2024 at 6:46am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How can I tell which column Header was clicked ?
Posted By: LeeHayton
Subject: How can I tell which column Header was clicked ?
Date Posted: 31 October 2007 at 9:52am
I need to know which column header has been clicked (has focus).  I see there is a "ColumnClick" event for the report control but this is only triggered if you "Right Click" on the column.
 
Thanks
Lee



Replies:
Posted By: Baldur
Date Posted: 31 October 2007 at 12:39pm
You must use the MouseDown (e.g. MouseUp)-Event and test with the HitTest-Method.
 
In the HittestInfo-Object:
 
if Item is nothing and not Column is nothing then -> Columheader Clicked
else -> SingleItem in this Column is clicked
endif



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