Using the DetailsView Control

The DetailsView control displays a single data record at a time and supports paging to allow the user to select which record that is. The DetailsView control is similar in purpose to the FormView control, although, as you’ll see, it is somewhat less flexible.

The easiest way to configure a DetailsView control is through the design surface, as shown in Figure 20-1.

images

Figure 20-1. Using the design surface to configure the DetailsView control

Using the design surface, you can enable paging between controls and the ability to insert, delete, and edit the individual data items. The DetailsView control supports the templates ...

Get Applied ASP.NET 4 in Context now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.