Spread ASP.NET 18
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / FpSpread Class / CancelEdit Method
Example


In This Topic
    CancelEdit Method (FpSpread)
    In This Topic
    Discards the editing values in the Spread component.
    Syntax
    'Declaration
     
    
    Public Sub CancelEdit() 
    'Usage
     
    
    Dim instance As FpSpread
     
    instance.CancelEdit()
    public void CancelEdit()
    Example
    This example cancels editing, discarding edited values and reverting back to the original values.
    private void btnCancelEdit_Click(object sender, EventArgs e)
    {
    //This method has the same effect as clicking the Cancel button in the FpSpread commandbar
    FpSpread1.CancelEdit();
    }
    Private Sub btnCancelEdit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
    'This method has the same effect as clicking the Cancel button in the FpSpread commandbar
    FpSpread1.CancelEdit()
    End Sub
    See Also