Editing Data
The GridView
control also enables you to edit database data. The amazing thing is that you can use the GridView
to edit the contents of a database table row without writing a single line of code.
The page in Listing 11.13 illustrates how you can update and delete records in the Movies database table by using the GridView
control (see Figure 11.9).
Figure 11.9. Editing records with the GridView
.
Listing 11.13. EditGrid.aspx
In Listing 11.13, the GridView
control has both its AutoGenerateEditButton
and AutoGenerateDeleteButton
properties ...
Get ASP.NET 4 Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.