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.

CurrentCellActivating event killing CurrentCellControlDoubleClick

Thread ID:





24570 Feb 7,2005 01:41 PM Feb 7,2005 02:44 PM Windows Forms 3
Tags: GridControl
M. Laughlin
Asked On February 7, 2005 01:41 PM

In order to make an entire row of a grid (doesn''t seem to matter which kind) highlight when any cell in the row is clicked, the example given uses a combination of ListBoxSelectionMode=SelectionMode.One and subscribing to the CurrentCellActivating event and setting the ColIndex=0. But this prevents the CurrentCellControlDoubleClick event from firing. Is there any work-around?

Administrator [Syncfusion]
Replied On February 7, 2005 02:24 PM

CurrentCellControlDoubleClick will only be fired when the current cell was switched into edit-mode (textbox got focus) on the first click and you click a second time inside the textbox. Since you do not active the current cell the textbox inside the cell will also not get the focus. What you should look for instead is the CellDoubleClick event. If that does not work look for Control.DoubleClick. Stefan

Administrator [Syncfusion]
Replied On February 7, 2005 02:28 PM

Try using the technique in \Syncfusion\Essential Suite\\Windows\Grid.Windows\Samples\Quick Start\HighlightCurrentRow. CurrentCellControlDoubleClick is hit in that sample.

M. Laughlin
Replied On February 7, 2005 02:44 PM

The CellDoubleClick is EXACTLY the right thing. Thank you!


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.