cancel edit in formview

In ASP.NET 2.0 the gridview has an event of RowEditing that consist of a parameter  of type GridViewEditEventArgs
which allow to cancel the update of a row if we want by the command e.Cancel = true.
Is there a cancel property like this in the formvie? I would like when I am in the Edit situation not to update the row.
Who is Participating?
The formview has an event called ItemUpdating which for its event arguments takes a type "FormViewUpdateEventArgs"

FormViewUpdateEventArgs has a Cancel property that when set to true will cancel the update operation.
ANAT2403Author Commented:
It works great and it does not update the database which is what I want , but the changes are left in the screen. How do I fire the event of cancel so that the changes in the screen will be deleted?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.