Print Page | Close Window

Capturing a Row single click event

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=7497
Printed Date: 10 November 2024 at 5:20am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Capturing a Row single click event
Posted By: Shawshank
Subject: Capturing a Row single click event
Date Posted: 01 July 2007 at 9:14pm
I see that the _RowDblClick event nicely captures the Row and Item clicked upon. I really need that for a single click as well. I don't see that event. So I assume one must attempt to detect the coordinates of the mouse over the Row/Item? Would this be correct? Or is there a better way? If one must determine the Row/Item clicked using the _MouseDown event, is there any example code available for doing so?
 
Shawshank



Replies:
Posted By: sserge
Date Posted: 04 July 2007 at 4:30pm
Use _SelectionChanged event. So far a single click causes changes is selection, it will be called.

--
WBR,
Serge


Posted By: Shawshank
Date Posted: 04 July 2007 at 4:35pm

That suggestion will not work for me as it is perfectly reasonable that a user would not be changing the selection in our app. I need to be able to detect the Row/Item selected so I can perform an action on that click if it occurs on a specific Row/Item.

 

Is my original idea about detecting mouse coordinates the only way of doing this? If so, is there any sample code available?



Posted By: Baldur
Date Posted: 30 October 2007 at 5:49am
You can use the MousDown/MouseUp-event with the HitTest-Method.
You get than the Item clicked.
 
I have solved it with:
The Report is fully editable.
In the RequestEdit-Event i set the cancel always to true and i have the row, column and item singleclicked.



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