The Grid View control supports the following features:use Row Editing, Row Updating, Row Deleting, Row Command, Row Data Bound, Row Canceling Edit, and Pagination in a Data Grid.From this article, you will have a clear view of the Grid View data insert, delete, and update operations.This article explains how to perform insert, update and delete operations in ASP. Let us take an example to perform CRUD operations using Entity Framework Database First approach.Suppose we’ve to work on Customer table having Category ID as foreign key.
So am calling the method Bind Grid Data method which is overloaded .
Introduction The Grid View control displays the values of a data source in a table.
Each column represents a field, while each row represents a record.
Ok let’s move on to Code behind what we have to do when user clicks Edit, Delete, Update and Cancel When we click on Edit the On Row Editing event will be fired.
You can see the C# code below will give the row number whatever you are editing by New Edit Index property.