Spread for ASP.NET 11 Product Documentation
IsSave Property
Example 


FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > SheetViewStateEventArgs Class : IsSave Property
Gets whether the state of the sheet is saved.
Syntax
'Declaration
 
Public ReadOnly Property IsSave As Boolean
'Usage
 
Dim instance As SheetViewStateEventArgs
Dim value As Boolean
 
value = instance.IsSave
public bool IsSave {get;}

Property Value

true if the event is save; false otherwise
Remarks
If the state of the sheet is to be saved, this property is true; otherwise, this property is false.
Example
private void FpSpread1SaveOrLoadSheetState(object sender, FarPoint.Web.Spread.SheetViewStateEventArgs e)
{
if (e.IsSave)
{
Session["SheetName" + e.Index] = e.SheetView.SaveViewState();
}
else
{
e.SheetView.LoadViewState("SheetName" + e.Index);
}
e.Handled = true;
}
Private Sub FpSpread1SaveOrLoadSheetState(ByVal sender As Object, ByVal e As FarPoint.Web.Spread.SheetViewStateEventArgs)
Handles FpSpread1.SaveOrLoadSheetState
If (e.IsSave) Then
Session("SheetName" & e.Index) = e.SheetView.SaveViewState()
Else
e.SheetView.LoadViewState("SheetName" & e.Index)
End If
e.Handled = True
End Sub
See Also

Reference

SheetViewStateEventArgs Class
SheetViewStateEventArgs Members