Rowupdating in gridview in asp net using c
You need to set the Edit Index property of the Grid View with the New Edit Index property of the Grid View Edit Event Args class.If user clicks the Cancel button while Grid View is in editing mode, you need to Cancel the Editing process and also need to reset the Edit Index property to -1 in the Row Canceling Edit event of the Grid View control as shown below: The last step is to handle the Row Updating event to actually update the back end database.
NET page that will handle different Grid View events to provide complete editing functionality.
Here creating new class library project named “Businees Layer”.
After importing references create data layer class object in business logic layer class.
I have a gridview I want perform insert ,update ,delete,edit operation.i want to delete the record from gridview by click on delete button but i want to show a alert message "Are you sure want to delete? now add a gridview to the page right click on gridview and then click on gridview property double click on the following event of gridview.
" to achieve all these functionalities i have used gridview event. i have explain some gridview view event which are very useful.