Category / Section
How to make a WinForms Spreadsheet as read only?
1 min read
Protection
To make WinForms Spreadsheet (SfSpreadsheet) as read only, you need to protect both Workbook and Worksheet using Protect and ProtectSheet method respectively, like below code example.
Spreadsheet.Protect(true, true,"");
Spreadsheet.ProtectSheet(Spreadsheet.ActiveSheet, "");
Samples: