These properties will automatically render Edit, Update and Cancel buttons inside Grid View column.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.event is raised when a row's Edit button is clicked, but before the Grid View control enters edit mode.
For those who do not know on how to generate Events in Grid View you can follow these steps below: I have a project that I coppied the above code into. 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 database is part of the project and it will be automatically mounted by VS.You can change this easily be creating your own database and changing the connection string in the web config.