The above piece of code will also do the same as label in Item Template and Textbox in the Edit Item Template.
By default all the boundfields will be trasferred as Textboxes in Edit Mode.
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.So am calling the method Bind Grid Data method which is overloaded . The visitors to a web site can typically be divided into two groups: the users and the administrators.Now I will show you the C# code behind file of the above ASP.
NET page that will handle different Grid View events to provide complete editing functionality.
In the above code, I set two properties Show Edit Button and Show Cancel Button of Command Field.