In the above code, I set two properties Show Edit Button and Show Cancel Button of Command Field.
These properties will automatically render Edit, Update and Cancel buttons inside Grid View column.
In this tutorial I will show you how you can create an editable Grid View control for administrators to modify database records directly into the Grid View control.
Suppose we’ve to work on Customer table having Category ID as foreign key.
Next Select your database and Set “Save Entity connection string in Web.config as” option true giving name Sample Entities.
Finally, you want to show all of the enrolled students and their grades for the selected course.
To do this, you'll use the control to the collection.
When you select an instructor, you see a list of courses taught by that instructor.