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.
Unfortunately, activation email could not send to your email. Please try again.

GridControl - Event from inside a cell

Thread ID:

Created:

Updated:

Platform:

Replies:

14267 May 24,2004 03:33 AM May 26,2004 12:11 AM Windows Forms 2
loading
Tags: GridControl
Dmr
Asked On May 24, 2004 03:33 AM

Hi all, I''m using a GridControl & I want to do some processing when mouse right button is clicked & when the focus is inside a cell. I tried most of the events associated with GridControl like MouseDown, CellMouseDown etc but found that these events are not called if the focus is inside a cell. Can anyone help me with this?

Administrator [Syncfusion]
Replied On May 24, 2004 03:44 AM

One way you can do this is to subscribe to CurrentCellControlGotFocus and CurrentCellControlLostFocus. In your GotFocus handler, you can subscribe to the control events you want to catch in teh active cell control. In the LostFocus, you can unsubscribe to the events. Here is a sample that uses this technique to handle context menus for the various cell controls. Here is the sample.

Administrator [Syncfusion]
Replied On May 26, 2004 12:11 AM

Thanks Clay.. It''s working perfect. >One way you can do this is to subscribe to CurrentCellControlGotFocus and CurrentCellControlLostFocus. In your GotFocus handler, you can subscribe to the control events you want to catch in teh active cell control. In the LostFocus, you can unsubscribe to the events. > >Here is a sample that uses this technique to handle context menus for the various cell controls. Here is the sample.

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.

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.

;