Net Question Answer site, specially started to allow visitors of this site ask their doubts and queries. Just click the Ask Now button and ask your question now.
event is raised when a row's Update button is clicked, but after the Grid View control updates the row.
Here’s the code to cancel update and delete in a Grid View: Suprotim Agarwal, ASP.
Follow this link for more details --While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference.
This enables you to provide an event-handling method that performs a custom routine, such as canceling the update operation, whenever this event occurs.
A Grid View Update Event Args object is passed to the event-handling method, which enables you to determine the index of the current row and to indicate that the update operation should be canceled.
To cancel the update operation, set the collections, if necessary, before the values are passed to the data source.
A common way to use these collections is to HTML-encode the values supplied by the user before they are stored in the data source.