SpreadJS Documentation
locked Method
Set to true to lock the cells in the row so the user cannot edit them.
Gets or sets whether the cells in the row are locked. When the sheet is protected, the locked cell cannot be edited.
Syntax
var instance = new GcSpread.Sheets.Row(sheet, index, sheetArea);
var returnValue; // Type: boolean
returnValue = instance.locked(value);
function locked( 
   value : boolean
) : boolean;

Parameters

value
Set to true to lock the cells in the row so the user cannot edit them.

Return Value

true if the cells in the row are locked; otherwise, false.
Example
This example uses the locked method.
activeSheet.getRow(2).locked(false);
Remarks
The default value is true.
See Also

Reference

Row type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.