What is the best way for have a SpreadSheet in readOnly mode?
I change some options of the <tdxSpreadSheet>.OptionsBehavior property, but when I try to edit the book by pressing a key or edit through the TdxSpreadSheetFormulaBar component, I found this error message:
"The cell that you are trying to change is protected and therefore read-only."
The options that I change are:
procedure TForm1.FormShow(Sender: TObject);
begin
dxSpreadSheet1.OptionsBehavior.&Protected := True;
dxSpreadSheet1.OptionsBehavior.DragFilling := False;
dxSpreadSheet1.OptionsBehavior.DragMoving := False;
dxSpreadSheet1.OptionsBehavior.Deleting := False;
dxSpreadSheet1.OptionsBehavior.Editing := False;
dxSpreadSheet1.OptionsBehavior.Inserting := False;
end;
Hello,
Your approach looks correct. This exception message means that Spreadsheet is in ReadOnly mode. We have implemented this behavior to emulate Microsoft Excel.
Do you mean that you need to suppress this message? I suggest that you review the load spreadsheet in read-only mode and Error editing protected spreadsheet tickets for more information.
Hello,
Yes, I want to suppress this message.
The users will can to access to SpreadSheet without get exception.
I tried the suggest in the T545652, but not all of the areas of the SpreadSheet are readonly
Thanks