Datagrid rowupdating

When a Grid View row is in edit mode then we can update the row's record in the relational database table.

datagrid rowupdating-13

The Grid View control supports the following features:use Row Editing, Row Updating, Row Deleting, Row Command, Row Data Bound, Row Canceling Edit, and Pagination in a Data Grid.Delete a Record We can delete a record from the database table by clicking on the delete button that is in the Delete column of the Grid View.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.From this article, you will have a clear view of the Grid View data insert, delete, and update operations.You can find the textbox that is generated on edit event in the Row Updating event below and assign it to a string variable.

Leave a Reply