Using CommandFields
You can use a CommandField
to customize the appearance of the Edit, Delete, Update, Cancel, and Select buttons displayed by the GridView
control. For example, the page in Listing 11.20 uses icons for the standard edit buttons (see Figure 11.15).
Figure 11.15. Using a CommandField
with the GridView
control.
Listing 11.20. ShowCommandField.aspx
You do not enable the AutoGenerateEditButton
or 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.