What is the major difference between GridView/DetailsView/FormView in ASP.net

balaweblog picture balaweblog · Dec 28, 2008 · Viewed 31.2k times · Source

What are the similarities and differences between GridView, DetailView, FormView?

What are use case scenarios for when you would use each of these controls and why?

Answer

craigmoliver picture craigmoliver · Dec 29, 2008

Formview is intended for insert/update/view of a single record.

DetailsView is intended for the displaying of a single record with optional support for paging and navigation.

GridView is intended to primarily to display/update multiple records. It's considered a replacement for the DataGrid control from .NET 1.1.