Wednesday, December 9, 2009

DetailsView Control

The DetailsView control renders a single record at a time as a table and provides
the capability to page through multiple records, as well as to insert, update, and
delete records. The DetailsView control is often used in master-detail scenarios
where the selected record in a master control such as a GridView control determines the record displayed by the DetailsView control.

DetailsView is a data-bound user interface control that renders a single record
at a time from its associated data source, optionally providing paging buttons to
navigate between records. It is similar to the Form View of an Access database,
and is typically used for updating and/or inserting new records. It is often used
in a master-details scenario where the selected record of the master control (GridView, for example) determines the DetailsView display record.

DetailView mostly used with GridView for Master Detail relationship, where master details are shown using GridView and when you click a particular row, you can show further details of individual row using DetailView either at the same page or at separate page.
Here you can read, edit and create (add a new row/record)
<asp:DetailsView ID="DetailsView1" runat="server">
<HeaderTemplate>
</HeaderTemplate>
<EmptyDataTemplate>
</EmptyDataTemplate>
<PagerTemplate>
</PagerTemplate>
<FooterTemplate>
</FooterTemplate>
</asp:DetailsView>

No comments:

Post a Comment