# SuspendLayout

Use the SuspendLayout method to temporarily suspend the layout logic for the Spread control. Learn its syntax and parameters in documentation.

## Content

Temporarily suspends the layout logic for the Spread control.

## Syntax

[JavaScript]

```javascript
FpSpread1.SuspendLayout();
```

## Return Type

None

## Remarks

This method can be used with SetValue to enhance the performance by stopping the painting while setting values in the cells. Use the ResumeLayout method to resume the layout. This method does not cause a postback to occur.

## Example 1

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

```javascript
<script type="text/javascript">
   function ProfileSpread()
      {
         fpSpread1.SuspendLayout();
      }
</script>
```

## See Also

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