After it has been clicked the postback places that row in edit mode. At this point in time the above Edit Item Template is displayed with two Image Buttons within it.One has it's Command Name = "Update" and the other "Cancel". Every one can use it to compare the new value with old ones.After searching long and hard I found a great article that solved my issue.Take a look at the page load if you are binding on post back then the values get updated before you are able to access them.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.event is raised when a row's Edit button is clicked, but before the Grid View control enters edit mode.This enables you to provide an event-handling method that performs a custom routine, such as canceling the edit operation, whenever this event occurs.
This works as expected and I can put a breakpoint in the Row Command event handler to see the "Event" command name.
In this tutorial I will show you how you can create an editable Grid View control for administrators to modify database records directly into the Grid View control.
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.
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.