Rowupdating event in gridview

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 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.

I am using Template Field’s Item Template and Edit Item Template for providing read only and editing interface of the same column in the Grid View.

By Default, Grid View control displays Item Template which directly shows the Product Name and Unit Price columns but when user clicks Edit button Grid View automatically switches to Edit Item Template and display the control available inside Edit Item Template for user editing.

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.

aspdotnet-suresh offers C#articles and tutorials,csharp dot net,articles and tutorials, VB.