Using Button Fields
You use a ButtonField
to display a button in a GridView
. You can use ButtonField
to represent a custom command or one of the standard edit commands.
For example, GridView
in Listing 11.21 contains two ButtonFields
that a user can click to change the display order of the movie category records (see Figure 11.16).
Figure 11.16. Using ButtonFields
with the GridView
control.
Listing 11.21. ShowButtonField.aspx
When you click ...
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.