Using the GridView Control

The GridView control displays data in a grid, just as the name suggests. The overall appearance is that of a table, with the field names forming the columns and the individual data items providing the rows. Figure 20-16 shows the basic appearance of a GridView control.

images

Figure 20-16. The basic appearance of a GridView control

The GridView control uses the same techniques that you have seen in earlier sections, so there isn’t much new information to add. The GridView control uses the same BoundField elements that you saw in the DetailsView control, although they are contained in a Columns element, as shown in Listing ...

Get Applied ASP.NET 4 in Context 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.