Friday, April 25, 2008

Everything FormView

Need to be able to display a record from a database or allow a user to select a record from a gridview then you basically have two control options the detailsview control and the formview control.

The detailsview is the quick and dirty way of display a list of fields and there corresponding values. It gives you the ability to delete, edit and create records in a nice simple top to bottom display. In making a quick editing form there couldn't be an easier way. But lets say you need to customize how the record is displayed to the user. A couple of rows? Need the custom form handling or AJAX? The detailsview will fall short. Enter the Formview

The formview is much like the detailsview in that it handles the display of a single databound record to the user for delete, edit or create but gives the developer the ability to customize how the user sees the data in the form of templates. When a datasource is bound to a formview a generic set of templates is created for the display, edit and insert states. A developer can arrange or customize these templates to meet any requirements for customized field display.

In the next view post I will be examining the formview and all it has to offer.

-cj

No comments: