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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

GridControl - Event from inside a cell

Thread ID:

Created:

Updated:

Platform:

Replies:

14267 May 24,2004 07:33 AM UTC May 26,2004 04:11 AM UTC WinForms 2
loading
Tags: GridControl
Dmr
Asked On May 24, 2004 07:33 AM UTC

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 07:44 AM UTC

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 04:11 AM UTC

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.

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

;