Protection
The RadSpreadSheet
control uses the SpreadProcessing library as its document model. This library provides the functionality to apply protection on a workbook or a worksheet level. Both the Workbook
and Worksheet
classes expose the Protect
and Unprotect
methods that will allow you to set a password to secure them.
More information about the protection functionality of the SpreadProcessing library can be found in the Workbook Protection and Worksheet Protection articles.
The following example showcases how to protect and unprotect the current worksheet:
Defining the RadSpreadsheet and the buttons for protecting and uprotecting the current worksheet
Adding logic to the buttons
RadSpreadsheetRibbon
The protection functionality is also present in the RadSpreadsheetRibbon element, which is a UI component that you can use together with RadSpreadsheet. You can find the protection logic in the Changes ribbon group of the Review tab.