Gridview rowediting and rowupdating

14 Jun

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.

Create SQL Connection We need a connection with a Microsoft SQL Server database so we can access data and perform an operation on it.

Select Both Category and Customer tables Give Model Namespace and click on Finish. NET Gridview Footer row for inserting record, inbuilt way to edit and delete records.

In this article we will look at how to update or delete a record in a database table using a Grid View control.

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.