Spread for ASP.NET 10 Product Documentation
Index Property (SheetViewStateEventArgs)
Example 


Gets the index of the collection that contains the sheet.
Syntax
'Declaration
 
Public ReadOnly Property Index As Integer
'Usage
 
Dim instance As SheetViewStateEventArgs
Dim value As Integer
 
value = instance.Index
public int Index {get;}

Property Value

Integer sheet index
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 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional

See Also

Reference

SheetViewStateEventArgs Class
SheetViewStateEventArgs Members

 

 


Copyright © GrapeCity, inc. All rights reserved.