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".
Error editing protected spreadsheet
Answers approved by DevExpress Support
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.
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.
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
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;