Spread for ASP.NET 7.0 Product Documentation
Handled Property
See Also  Example Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > SheetViewStateEventArgs Class : Handled Property


Glossary Item Box

Gets or sets whether the event has been handled.

Syntax

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

Property Value

true if handled; false otherwise

Example

C#Copy Code
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;
}
Visual BasicCopy Code
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

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.