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.

Formula cell single click activate problems

Thread ID:





40729 Feb 10,2006 02:49 PM Feb 14,2006 10:43 AM Windows Forms 2
Tags: GridControl
Asked On February 10, 2006 02:49 PM

I''m having a problem with formula cells. I set all cells to be formula cells through the tablestyle property. The problem is that any time you click the mouse on a cell, the cell becomes active even if model.Options.ActivateCurrentCellBehavior is set to double-click. This means that you can''t clear a range of cells by selecting the range and pressing delete because as soon as you select the range, the top-left cell becomes active and the delete event goes to it and not the range. If you select a range or move the current cell using only the keyboard, then the cell does not auto-activate and you can clear the range using delete. How can I get formula cells to only activate on a double click? Thanks

Administrator [Syncfusion]
Replied On February 14, 2006 04:12 AM

Hi Jim, To activate the CurrentCell on Double click, you need to set the property ForceEditwhenActivated to false and set the property ActiveCurrentCellBehavior is to GridCellActivateAction.DblClickOnCell. Here is a code snippet. this.gridControl1.ActivateCurrentCellBehavior = GridCellActivateAction.DblClickOnCell GridFormulaCellRenderer.ForceEditWhenActivated = false; Let us know if you need further assistance, Regards, Haneef

Replied On February 14, 2006 10:43 AM

That did the trick. Thanks!


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.