[]
        
(Showing Draft Content)

SetLocked

Sets whether the cell at the specified row and column is locked.

Syntax

[JavaScript]

FpSpread1.SetLocked(locked);

Parameters

locked

Boolean, whether the cell is locked

Return Type

None

Remarks

This method sets the locked status of a cell at the specified row and column. This method does not cause a postback to occur.

Example 1

This is a sample that contains the method.

On the server side on page load:

FpSpread1.AllowClientUnlock = True

On the client side, the script that contains the method would look like this:

<script type="text/javascript">
   function ProfileSpread()
   {
var spread = document.getElementById("FpSpread1");
spread.Cells(row, column).SetLocked(true);
   }
</script>

See Also

GetValue

Scripting Members

GetLocked