We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

controls events in a cell

Thread ID:

Created:

Updated:

Platform:

Replies:

28852 May 11,2005 06:20 PM UTC May 12,2005 10:02 AM UTC WinForms 3
loading
Tags: GridControl
Jonathan Urban
Asked On May 11, 2005 06:20 PM UTC

hi, I have a datagrid which contains a panel in each cell. I want to handle the double click event of their panels. My problem : I must to click 3 times to call the associated method. In fact, the first click gives the focus to the currentcell, then others clicks call the associated method. Can you resolve my problem please?

Administrator [Syncfusion]
Replied On May 11, 2005 10:01 PM UTC

I think you can catch a double click by listening to the grid.CurrentCellControlDoubleClick event.

Jonathan Urban
Replied On May 12, 2005 06:12 AM UTC

Hi, if I catch the double click on the cell which has controls, only one click will be catched by the cell and the other will be catched by the inside control panel.

Administrator [Syncfusion]
Replied On May 12, 2005 10:02 AM UTC

I do not know of a good way to do this. One way that I think will work is to catch the grid.CellClick event. In the handler, save the DateTime.Now. Then also handle the Click event of teh controls on your panel. There compare the DateTime.Now with the time saved in teh CellClick event. If they are within SystemInformation.DoubleClickTime, then you have a double click, and you should do your double click work. (You would also have to handle teh control''s DoubleClick event as well to catch normal double clicks when teh control is already active.)

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;