Spread for ASP.NET 8.0 Product Documentation
SheetView Property (SheetViewStateEventArgs)
Example 


Gets the sheet whose state is to be loaded or to be saved.
Syntax
'Declaration
 
Public ReadOnly Property SheetView As SheetView
'Usage
 
Dim instance As SheetViewStateEventArgs
Dim value As SheetView
 
value = instance.SheetView
public SheetView SheetView {get;}

Property Value

SheetView containing the sheet
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
Requirements

Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

Reference

SheetViewStateEventArgs Class
SheetViewStateEventArgs Members

 

 


Copyright © GrapeCity, inc. All rights reserved.