# MoveToPrevRow

Use the MoveToPrevtRow method to move the active cell to the previous row. Learn its syntax and parameters in documentation.

## Content

Moves the active cell to the previous row.

## Syntax

[JavaScript]

```javascript
FpSpread1.MoveToPrevRow(wrap);
```

## Parameters

***wrap***
Boolean, whether to wrap to the last row when you reach the beginning of the control

## Return Type

None

## Remarks

This method moves the active cell up to the previous row. This will cause the **onActiveCellChanging**, **onActiveCellChanged**, and **onSelectionChanged** events to occur. This method does not cause a postback to occur.

## Example

This is a sample that contains the method. On the client side, the script that contains the method would look like this:

```javascript
<script type="text/javascript">
   function moveRow() {
       FpSpread1.MoveToPrevRow(true);
   }
</script>
```

## See Also

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