Net Grid View simple and also combining the powers of ASP.
Net AJAX with that of JQuery to give an elegant and charming user experience.
Now let’s create a method for executing the Update or Insert.
Six of those paramaters basically comes from the Text Box values that were entered in the page. Invalid Cast Exception: Unable to cast object of type 'System.
The last parameter is a boolean value which tells the method whether to execute an Insert (false) or Update (true). In-order to perform Edit and Update in Grid View we need to use three events ( Grid View_Row Editing, Grid View_Row Canceling Edit , Grid View_Row Updating).