Gridview edit mode rowupdating
Ok let’s move on to Code behind what we have to do when user clicks Edit, Delete, Update and Cancel When we click on Edit the On Row Editing event will be fired.
Developers prefer manual coding but an editable Grid View is a good way to update a database. Step 1Put a Grid View in your aspx page then write code for the page load to fill the Grid View.
For demonstration I have created a database (named Database.mdf) in which we have a table named tbl_Employee.
In the template field I will Place a label or some controls, So that it’s very easy to access those controls in the code behind by using Find Control method. Item Template is the content to display for the items in the Template Field.
Find Control("ddl Status Edit"), Drop Down List) Sql Data Source1.
In this article I will explain howe to edit and update data in gridview using Boundfield Coumns.There are several ways for getting those dynamically generated textbox values we use that in different scenarios.