Rowupdating templatefield

6854933580_2c8b688306_z

Please post the code for your Page_Load method and the that handles your Update (your C# code) so we can have a better look at what's going on. Please give some references and/or details of how to. This wipes out the data provided by the user during editing (editing happens after the page load). If you reset the Data Source at this stage, your values for updating will be lost. I actually don't know how to write the Row Updating function, I just found it from the internet, and so of course it's not working. Please give some references and/or details of how to. Ok what's happening is that you are binding the data source for the Grid View every time a postback occurs in the Page_Load method.

By default all the boundfields will be trasferred as Textboxes in Edit Mode.By using the Grid View Row object we can find the reference of any control in the row in which user is editing the data.In this tutorial we are searching for our Text Box controls txt Product Name and txt Unit Price.In data driven web sites, users are normally allowed to view data and administrators are allowed to add, edit or delete data.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.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.

You must have an account to comment. Please register or login here!