I hope the above information was a little bit helpful for you, kindly let me know your valuable feedback or thoughts.In this article we will look at how to update or delete a record in a database table using a Grid View control.We first of all create a Stored Procedure that gets the Id of an employee as a parameter from the Grid View on whichever row the user clicked. In this event, first we get the datakey value that is the id of an employee of whichever row the user clicked and that id is passed as a parameter to the Stored Procedure. According to the above, in these three operations we use three events of the Grid View for each operation.Point numbers 2 and 3 are performed after point 1 is performed.1.Introduction The Grid View control displays the values of a data source in a table.Each column represents a field, while each row represents a record.Row move in edit mode We have a Grid View with records.
To do that we need a Row Editing event of the Grid View.We get the Id value using the row index and another Text Box value is also retrieved.All updated values are passed to the Stored Procedure.The Grid View control is a tabular databound control but sometimes it is used like a spreadsheet control. NET 2.0 and is an improved version of the Data Grid control. We can use this to display data from a database and edit, sort and select the data.Database Table Structure We are using an "EMPLOYEE" table so the "EMPLOYEE" table design is: Design of Grid View We design a Grid View with which we can perform update and delete operations.