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

FormulaCell - prevent editing

Thread ID:





62945 Jun 26,2007 04:58 AM UTC Jun 29,2007 03:30 AM UTC WinForms 4
Tags: GridControl
Richard Bysouth
Asked On June 26, 2007 04:58 AM UTC

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?



haneefm [Syncfusion]
Replied On 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,

Richard Bysouth
Replied On 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?

haneefm [Syncfusion]
Replied On 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,

Richard Bysouth
Replied On June 29, 2007 03:30 AM UTC

thanks Haneef


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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

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