# GetLocked

Use the GetLocked method to get whether the cell at the specified row and column is locked. Learn its syntax and parameters in documentation.

## Content

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

## Syntax

[JavaScript]

```javascript
FpSpread1.GetLocked();
```

## Parameters

None

## Return Type

*locked*

Boolean, whether the cell is locked

## Remarks

This method gets 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:

```vbnet
FpSpread1.AllowClientUnlock = True
```

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

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

## See Also

[SetLocked](/spreadnet/docs/latest/online-asp/overview/spweb-clientscriptref/clientscript-members/clientscript-allmeths/CSSR-SetLocked)
[Scripting Members](/spreadnet/docs/latest/online-asp/overview/spweb-clientscriptref/clientscript-members)