Ticket T545652
Visible to All Users

Error editing protected spreadsheet

created 8 years ago

When attempting to edit a cell and the spreadsheet is protected and/or editing disabled an error is generated saying "The cell that you are trying to change is protected and therefore read-only".

Answers approved by DevExpress Support

created 8 years ago

Hello,

Yes, this behavior is correct. When you are trying to modify a protected cell, our inner exception is raised, which indicates that you cannot do this.

    Show previous comments (18)

      Thanks Paulo - that is something I'd tried, and it goes some way to doing what I'm after, but unfortunately it doesn't block changes to any containers on the sheet.

      DevExpress Support Team 7 years ago

        We decided to implement a special exception type for these cases in the context of the T598064 ticket in future builds (in v17.2.4).

          Delphi:
          You can modify the OnKeyPress() event in Delphi to avoid this warning message as below,

          procedure TForm1.dxSpreadSheet1KeyPress(Sender: TObject; var Key: Char);
          begin
          Key := #0;
          end;

          Other Answers

          created 5 years ago

          Delphi:
          You can modify the OnKeyPress() event in Delphi to avoid this warning message as below,

          procedure TForm1.dxSpreadSheet1KeyPress(Sender: TObject; var Key: Char);
          begin
          Key := #0;
          end;

            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.