Rowupdating in asp

The first column is ID which is identification of user, so it must be unique.

Here we set ID column Primary Key and Auto Increment by updating the ID column property.

Save all or press "Ctrl S" and hit "F5" to run the page, the page will look as in the following image: Click on "Edit the Grid View", it will display Textboxes in each cell as in the following image: Edit the value(s) here and click on the Update link, it will update all the data or to remove it click on the "Delete" link above the image shown.

One note will be helpful for you, while describing Columns in Grid View if you are using a boundfield then create objects of the control using cells[index] in the rowupdateing event of Grid View, but if you are using controls itself like Label or textboxes etc then use Fincontrol("stringid").

In codebehind function you can get the arguments by Request.

Here Mudassar Ahmed Khan has explained how to Export a Grid View with Images or Pictures to Word Excel or PDF Formats in ASP. In this article the Grid View is displaying images stored on disk and th Hi, This is Mudassar Khan. Net Question Answer site, specially started to allow visitors of this site ask their doubts and queries. Just click the Ask Now button and ask your question now.

Sql Client; public partial class _Default : System.

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.

For demonstration I have created a database (named Database.mdf) in which we have a table named tbl_Employee.

The Sql Command Builder can be used to build and execute SQL queries based on the select command that you will supply. Item Array[2]) 100; //Here save the data to the datasource adapter.

It provides the feature of reflecting the changes made to a Data Set or an instance of the SQL server data.

Leave a Reply