# FarPoint.Web.Spread.FpSpread.SaveViewStateToSession

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Web_Spread_FpSpread_SaveViewStateToSession_" data-uid="FarPoint.Web.Spread.FpSpread.SaveViewStateToSession*">SaveViewStateToSession Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Web_Spread_FpSpread_SaveViewStateToSession_" data-uid="FarPoint.Web.Spread.FpSpread.SaveViewStateToSession*"></a>
<h4 id="FarPoint_Web_Spread_FpSpread_SaveViewStateToSession" data-uid="FarPoint.Web.Spread.FpSpread.SaveViewStateToSession">SaveViewStateToSession</h4>
<div class="markdown level1 summary"><p>When this property is true, the spread will save its view state to the
Session object. And, the SaveOrLoadSheetState event will not be fired.
If you do not want to save the spread view state to the Session object,
you should set this property to false. The default value is true.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool SaveViewStateToSession { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property SaveViewStateToSession As Boolean</code></pre>
</div>
</div>
