Bug Report T151247
Visible to All Users

The worksheet whose Options.Protected property is set to True prohibits content modifications of unlocked cells

created 11 years ago

When cells are specifically unlocked within a protected spreadsheet,  I would have expected them to behave at least within themselves exactly as if the sheet was not protected - and this expectation is pretty much realised within Excel.   However, although direct entry to a blank specific cell within an unlocked range is working out as I expect, other features such as deleting (clearing), pasting, or editing are either difficult or impossible.

I attach a zipfile containing some simple code which sets up a single column range of cells as specifically unprotected (not locked) and colours them yellow just to indicate easily which cells are unlocked.   As expected, without sheet protection, it makes no difference whether the cells are locked or not.   However, when protection is applied the differences between the locked and unlocked cells are not as marked as they should be.  Entries can be made only in the yellow range, but they can then be deleted or edited if the individual cells are put in edit mode.  If the popup menu is called within the unlocked range it can be seen that the only options available are "copy" and "format cells".  I can live without being able to merge cells in this situation but not being able to paste in a value (or values) and not being able to clear the content from the popup or by using the delete button (without having to go into edit mode) is very frustrating.  My poor guinea pig client who has just had her program "updated" is not very impressed.  (She is also not very impressed with the printouts either - as discussed separately.)

Comments (1)
DevExpress Support Team 11 years ago

    Hello Allan,

    Thank you for your report. I have reproduced the described behavior and forwarded this ticket to our developers for research.

    Answers approved by DevExpress Support

    created 11 years ago (modified 10 years ago)

    We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

    Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

      Comments (3)

        "Hotfix requested and is being prepared" as an expression is starting to become logged in my confidence centres along with "it is in the post".   Certainly, the chances of my ever marking that answer as a solution, if recent experience is anything to go by, is somewhere south of remote.
        Among your status labels such as "Fixed" or "Duplicated", do you have one that says "Disappointed"?  If so, it is needed here.

        DevExpress Support Team 11 years ago

          Allan,

          I am afraid that it is impossible to provide a hot fix for this issue since there are too many source changes there and the SpreadSheet development is gone too far since the VCL 14.1.4 release (the dxSpreadSheetCore.pas unit has been changed 33 times since 14.1.4). The VCL 14.1.4 sources just cannot be compiled with the fix code. The fix for this issue will be embedded into the VCL 14.1.5 release.

            Thank you Paulo.   I can understand that situation.  In future, though, to save wasting time in keeping checking would you (you as in DevEx) please update the "Hotfix requested and being prepared" solution rather quicker than the last couple of instances - or, even better, use the expression"Hotfix requested and being reviewed" from the outset when there is a significant possibility of this situation developing and not being confirmed within a couple of days.

            Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

            Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.