By default, the Grid View control displays data in read-only mode.
However, the control also supports an edit mode in which it displays a row that contains editable controls such as Text Boxor Check Boxcontrols.
In this article, I am going to take a simple database table that has following fields: Auto ID - Int, Auto Increment, Primary Key Page Name - Varchar(50) Page Description - Varchar(500) Active - Bit(1) In this article, I am not going to explain the workings of Sql objects but focusing on the events and methods of the Grid View that will help us in updating and deleting the records.
A Visual Studio project with source code is available to accompany this topic: Download.
The Update Panel contains a textbox for search, a button to submit the search and a Grid View control that is supposed to return the results.
Let me explain: I have a modal popup extender that contains an Update Panel.
In this article, I am going to explain how to manipulate data using Grid View control.
This article scope is limited to Updating and Deleting records using Grid View and I am not using any readymade Data controls for that but manually writing all event methods.
This example shows how to edit and update records in a Grid View in ASP. This example is helpful in situations where an administrator needs to edit several records from the database.