Net-informations.com

Gridview - Add, Edit and delete

gridview add , edit and delete

In this article we create a Gridview from database and add some additional operations such a add, edit and delete data in the GridView control. In the previous article , we learned how to create a simple GridView at runtime .

Database

In this article I have used Microsoft's Pubs database for sample data. You can download it free from the following link.

Download

Here we connect the Stores table of Pubs database for these operations. You can see the structure of the table here.

store

After setting the database, create a new Asp.Net project and open the design view and write the following code in the aspx file.

Default.aspx

After created the design view and open the code behind and write the following code in the source file

C# Source Code

After created the design view and open the code behind and write the following code in the source file

VB.Net Source Code

Hope you have run the program successfully!!







net-informations.com (C) 2019    Founded by raps mk
All Rights Reserved. All other trademarks are property of their respective owners.
SiteMap  | Terms  | About