The FormView Control

FormView is a new data-bound control that can be considered the templated version of the DetailsView. It renders one record at a time, picked from the associated data source and, optionally, provides paging buttons to navigate between records. Unlike the DetailsView control, FormView doesn't use data control fields and requires the user to define the rendering of each item by using templates. The FormView can support any basic operation its data source provides.

Note that the FormView requires you to define everything through templates, and not just the things you want to change. The FormView has no built-in rendering engine and is limited to printing out the user-defined templates.

The FormView Object Model

Two functional aspects ...

Get Programming Microsoft® ASP.NET 3.5 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.