October 2010
Intermediate to advanced
1920 pages
73h 55m
English
GridView renders its data items in an HTML table. Each data item renders in a distinct HTML table row. For example, the page in Listing 11.1 demonstrates how you can use GridView to display the contents of the Movies database table (see Figure 11.1).
Figure 11.1. Displaying data with the GridView control.

Listing 11.1. ShowMovies.aspx

In Listing 11.1, the GridView control is bound to a SqlDataSource control, which represents the Movies database table. The GridView associates with its data source through its DataSourceID property. ...