Using the FormView Control

The FormView control is broadly similar in function to DetailsView, although the templates that are supported operate on the entire data item and not just individual fields. This means that you are not bound by the tabular layout that DetailsView enforces, but also means that you are responsible for every aspect of laying out and formatting the data fields. Table 20-3 describes the templates that the FormView control supports.

image

The FormView control renders an outer HTML table element, which means that you can define the templates in terms of table row (tr) elements. This tends to tie you to some close variant of the tabular ...

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.