When I click on the edit button the update and cancel button appear.Upon modifying the values in textbox which come from Edit Item Template , the new values dont show in the event handler rowupdating(), instead I get the values which appear when the page was rendered. Row Index; so i contain rowindex now u can update appropriate row according to u r Stored Procedure I know how to update with HTML, But I want in C# How To Update protected void Price Ep_Row Updating(object sender, Grid View Update Event Args e) How to Update with The Help Of Csharp. Regards atul singh Thank you very much Sri Lakshmi Infact i had posted a query regarding the same a few backs ago.The visitors to a web site can typically be divided into two groups: the users and the administrators.This example shows how to edit and update records in a Grid View in ASP. This example is helpful in situations where an administrator needs to edit several records from the database.
Here we can update Name, Emp_Code and Emp_Age fields depending on the Id field of the "EMPLOYEE" table.Now I will show you the C# code behind file of the above ASP.event is raised when a row's Update button is clicked, but before the Grid View control updates the row.I know how to update with HTML, But I want in C# How To Update protected void Price Ep_Row Updating(object sender, Grid View Update Event Args e) How to Update with The Help Of Csharp. Regards atul singh in gridview property go to Events there doublic click of Row Updating Event which will automaticall redirect into code behind... But when i used it again this code it returns the old value... In the gridview i set the column for example City column into a template and set the name to txt City. EDIT: I made a little mistake in the previous post: the event handler is Row Updating; Row Updated won't trigger for the life of me. in the above code in "Text Box txtcity = (textbox)row.findcontrol("txtcity");" i'm getting the default value which is not updated, but not updated value. Inside the Row Updating event u can code for updation ex: Protected Sub Grid View1_Row Updating(By Val sender As Object, By Val e As System.