w=333" class="size-full wp-image-1684" src="https://jwcooney.files.wordpress.com/2013/09/gridviewexample.gif? w=685" alt="Grid View Example" / This article deals with the Grid View Web Forms .
By the way, if you find the information I’m giving is useful, then have a look at some of the other Web Forms related articles I’ve written.
At this time in 2017, the Web Forms technology is not as commonly used as it once was, but is still relatively prevalent, especially in legacy applications.
You may be asking yourself: what’s the question here?
You can also indicate whether the exception was handled in the event-handling method by setting the On Row Updated Row Canceling Edit On Row Canceling Edit Row Deleted On Row Deleted Row Deleting On Row Deleting Row Editing On Row Editing Row Updating On Row Updating Grid View Class System.
event is raised when a row's Update button is clicked, but before the Grid View control updates the row.
These properties will automatically render Edit, Update and Cancel buttons inside Grid View column.
Editing the Grid View control can be an incredibly easy feature to add for certain database tables, especially those who have no foreign key associated and can easily be edited through the use of a standard Text Box web control as shown in the figure below: 1.You need to include the Grid View Command Field column to add Edit, Update and Cancel Buttons in the Grid View. You need to include Template Field for every column you want to provide Editing because Template Field provides you both Item Template and Edit Item Template to create interface for two separate Grid View modes. You need to handle Grid View events such as Row Editing, Row Canceling Edit and Row Updating to provide desired editing functionality.Font-Names="Verdana" Font-Size="10" Data Key Names="Product ID" Auto Generate Columns="false" onrowcancelingedit="Grid View1_Row Canceling Edit" onrowediting="Grid View1_Row Editing" onrowupdating="Grid View1_Row Updating"In the above code, I set two properties Show Edit Button and Show Cancel Button of Command Field.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.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.