The DetailsView control has very similar functionality to the GridView control. The GridView control shows all of the records from its data source control at once, but the DetailsView control displays one row from a data source at a time by rendering an HTML table.

The DetailsView control is also often used in a master-details scenario where the selected record of the master control determines the record to display in the detail view. The DetailsView supports both declarative and programmatic databinding.
The following program shows how to bind a DetailsView from an ASP.NET application.
Default.aspx
Untitled Page
ASP.NET Deatilsview - Related Contents
Advertisement
ASP.NET Related Topics