online dating for sugar daddies - Gridview rowupdating event from code
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.
By Default, Grid View control displays Item Template which directly shows the Product Name and Unit Price columns but when user clicks Edit button Grid View automatically switches to Edit Item Template and display the control available inside Edit Item Template for user editing.
I am using a Template Field to display my Edit, Update and Cancel 'buttons' in the first column of the Grid View within respective Item Template and Edit Item Template fields.
The Row Editing event loads the page and the page loads the Usercontrol again now the gridview is in edit Mode but the Grid View Row Updating event is not fired when the update button is clicked.
I have a Gridview with Auto Generate Columns="False".
Last line of the following code is calling a local method for updating the database and passing all the parameters to this method.
Please keep in mind that there are many different ways to update the database using the Grid View control depending on the type of data you are updating and the functionality the user need and there are many solutions to achieve the same end result.
Simple Insert, Select, Edit, Update and Delete in Asp. – The above block of codes in Row Updating event, finds the control in the Grid View, takes those values in pass it to the Customers Cls class Update method.