Spread ASP.NET 14
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / SheetViewStateEventArgs Class / Handled Property
Example


In This Topic
    Handled Property (SheetViewStateEventArgs)
    In This Topic
    Gets or sets whether the event has been handled.
    Syntax
    'Declaration
     
    Public Property Handled As Boolean
    'Usage
     
    Dim instance As SheetViewStateEventArgs
    Dim value As Boolean
     
    instance.Handled = value
     
    value = instance.Handled
    public bool Handled {get; set;}

    Property Value

    true if handled; false otherwise
    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