SpreadJS Documentation
locked Method
Set to true to lock the cell.
Gets or sets whether the cell is locked. When the sheet is protected, the locked cell cannot be edited.
Syntax
var instance = new GcSpread.Sheets.Cell(sheet, row, col, sheetArea);
var returnValue; // Type: boolean
returnValue = instance.locked(value);
function locked( 
   value : boolean
) : boolean;

Parameters

value
Set to true to lock the cell.

Return Value

true if the cell is locked; otherwise, false.
Example
This example locks the cell.
activeSheet.getCell(1,1).locked(true);
Remarks
The default value is true.
See Also

Reference

Cell type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.