By default all the boundfields will be trasferred as Textboxes in Edit Mode.
The first one is sender, so in this case it is gridview which is calling this event.
to modify update behavior before it happens, to provide additional handling when an update will occur, to retain a reference to an updated row, to cancel the current update and schedule it for a batch process to be processed later, and so on.
Make two tables in a database: Contact and Contact Type.
This is just an example of how we shall add, edit, and delete data in a Grid View.
In case of the bound field’s we need to check what column it is and need to use index of that cloumn, which is little hard and even in future if we change the column order If you see the Last Template Field part in the above code, I am using the link buttons for edit, update, delete and cancel.
May be you may think why am I using link buttons as we are provided with some command field buttons by Grid View.Suppose if we are trying to hide primary key of our table, there is actually no need to hide. In the above Snippet you are seeing a label in Item Template that means whenever we are showing Grid View to the user Label will be visible to the user. We will use Template Field, whenever we want to define some custom control in the data bound controls like Grid View, Data Grid or Data Repeater.This post is an update to my previous post on making scrollable tables with fixed headers.I’ve had a few requests for adding additional functionalities, and I thought instead of cluttering the old post, I’ll do a new one for the updated script.Here is the html markup for the grid The Above markup is pretty simple if you follow my previous article as I just used template field’s and Item templates. If we want to modify data or check certain conditions before displaying it to the user this is the correct place to do the changes.