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. Image for the cookie policy date
close icon

FormulaCell - prevent editing

I've just started using FormulaCells in my app and would like to prevent a cell going into edit mode when clicked on.
I've set ReadOnly = True and Clickable = False for the cell but it still seems to go into edit mode when clicked on.

What am I missing here? Is this the default behaviour for FormulaCells?

thanks

Richard

4 Replies

HA haneefm Syncfusion Team June 26, 2007 03:11 PM UTC

Hi Richard,

A cell can be prevented from getting in to the edit mode by handling the CurrentCellStartEditing event and setting the e.Cancel to true.

Best Regards,
Haneef


RB Richard Bysouth June 27, 2007 09:50 PM UTC

thanks Haneef

I already knew how to do that - just wondered is the default behaviour for FormulaCells to allow editing even if set to Readonly?


HA haneefm Syncfusion Team June 28, 2007 08:43 PM UTC

Hi Richard,

You can set the style.Enabled property to false or you can handle the CurrentCellStartEditing event and set e.Cancel = true.

Best regards,
Haneef


RB Richard Bysouth June 29, 2007 03:30 AM UTC

thanks Haneef

Loader.
Live Chat Icon For mobile
Up arrow icon