How To Edit Data With The Gridview Control In Asp.Net


show more Editing data with the GridView control provides you with in-depth training on Developer. Taught by David Gassner as part of the ASP.NET Essential Training show less
please wait ...

Editing data with the GridView control

The GridView control combined with the SqlDataSource control can be used to create a very elegant editing interface where the user sees data listed in an HTML table and then can click a hyperlink to open just the selected row for editing. From there, you can then allow the user to make changes to the data, which will automatically be saved to the server-side database. Most of the code that you need for this is already generated when you drag a GridView control into a page within Visual Web Developer. In this demonstration, I'll show you how to modify the code to turn editing on and then how to block editing of particular columns. I'll work with the file AuthorsWithEditing.aspx and then look at the file in Design View. You'll see that it has a version of the Authors GridView, this time displaying just three columns, the Last Name, First Name and Phone Number.

First, I'll turn Editing on, on the GridView control. I'll click on the GridView control and then open the li...

Editing data with the GridView control
Video duration: 6m 57s 6h 24m Beginner Updated Feb 13, 2013

Viewers:

Editing data with the GridView control provides you with in-depth training on Developer. Taught by David Gassner as part of the ASP.NET Essential Training

Subjects:
Developer Web
Software:
ASP.NET
Author:
please wait ...