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 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.