?
Solved

cancel edit in formview

Posted on 2006-04-16
2
Medium Priority
?
788 Views
Last Modified: 2011-10-03
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.
Thankyou
Anat
0
Comment
Question by:ANAT2403
2 Comments
 
LVL 2

Accepted Solution

by:
asdavey earned 1000 total points
ID: 16466340
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.
0
 

Author Comment

by:ANAT2403
ID: 16467350
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?
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question