Spread ASP.NET 6.0 Product Documentation
SaveViewStateToSession Property
See Also  Example Send Feedback
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > FpSpread Class : SaveViewStateToSession Property


Glossary Item Box

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 don't want to save the spread view state to the Session object, you should set this property to false. The default value is true.

Syntax

Visual Basic (Declaration) 
Public Property SaveViewStateToSession As Boolean
Visual Basic (Usage)Copy Code
Dim instance As FpSpread
Dim value As Boolean
 
instance.SaveViewStateToSession = value
 
value = instance.SaveViewStateToSession
C# 
public bool SaveViewStateToSession {get; set;}

Example

This example sets the SaveViewStateToSession property.
C#Copy Code
FpSpread1.SaveViewStateToSession = false;
Visual BasicCopy Code
FpSpread1.SaveViewStateToSession = False

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2002-2012 GrapeCity, Inc. All Rights Reserved.