Updating gridview control
For uploading image on this forum, select image option as following image.
If image format is correct then put break point at "Insert New Record" method and debug you application and tell me what error generated now.
Actually gridview control is built with lot of features and this control is commonly used for all applications.
And here I’m explaining some basic functions of this gridview control such as insert edit and delete a record.
First, we need to prepare the database table and stored procedure for gridview operations such as insert, update & delete a records, here I’m using sql server 2008 for all database activities, for this sample I have created the customer table and stored procedure for all mentioned gridview operations.
Create the customer table in your own test database using below table script and insert some records initially to load gridview with data.
Hi Kamal Pradhan You can create Global Class in App_Code folder. Sql Client;public class Global Class You can get the screen shot using "Prt Scr" (Print Screen) key.
NET Grid View Control will show how you can use Template Field in the Grid View Control to display Check Box with the current status of the Report from the Database.
It enables you to select, sort, and edit these items.
In this article, I am going to explain how to insert, update or delete a row from a grid view control. At run time, the Eval method calls the Eval method of the Data Binder object.
Recreate your table and set "id" column as Primary Key with Identity Column.
In this article, we will explore how to add, update, delete and select a record from sql server database using gridview control in a simple way.