Worksheet.SetProtected

Worksheet.SetProtected method

Sets cellRange whether it is protected.this is an extended method used only in Grid. This method has nothing to do with the cell.Style.CellLocked property It will not take affect after save to excel file.

public void SetProtected(CellRange range, bool isProtected)
ParameterTypeDescription
rangeCellRangeCellRange object.
isProtectedBooleanBool value to be set.

See Also