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.

FormulaCell - prevent editing

Thread ID:

Created:

Updated:

Platform:

Replies:

62945 Jun 26,2007 12:58 AM Jun 28,2007 11:30 PM Windows Forms 4
loading
Tags: GridControl
Richard Bysouth
Asked On June 26, 2007 12:58 AM

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

haneefm [Syncfusion]
Replied On June 26, 2007 11:11 AM

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

Richard Bysouth
Replied On June 27, 2007 05:50 PM

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 04:43 PM

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

Richard Bysouth
Replied On June 28, 2007 11:30 PM

thanks Haneef

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.

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.

;