October 2010
Intermediate to advanced
1920 pages
73h 55m
English
BoundFieldsA BoundField always displays the value of a data item as text when a row is in normal display mode. When a row is selected for editing, a BoundField displays the value of a data item in a single-line text field.
The most important three properties of the BoundField class are the DataField, DataFormatString, and HeaderText properties. The page in Listing 11.18 illustrates how to use these properties when displaying a list of movies (see Figure 11.13).
Figure 11.13. Using BoundFields with the GridView control.

Listing 11.18. ShowBoundField.aspx
The GridView control includes an AutoGenerateColumns property assigned the value ...