System.Web.UI.WebControls Namespace DetailsView Class
.NET Framework version 2.0
Sets or retrieves the style properties for the footer section of a DetailsView control.
Script |
DetailsView.FooterStyle.Property [ = enumValue ] |
A TableItemStyle object that defines the style properties for the footer section of a DetailsView.
Use this property to provide a custom style for the footer row in a DetailsView control. Common style attributes that can be set include forecolor, backcolor, font, and content alignment within the cell. Providing different item styles enhances the appearance of the DetailsView control.
The FooterStyle subproperties can be set declaratively using either of the following methods:
The subproperties can also be set programmatically in the form FooterStyle.Property.
For a list of style properties that can be set, see the TableItemStyle class.
The below snippet shows setting the FooterStyle property of a DetailsView control at design time.
<asp:detailsview id = "msgView"
runat = "server"
cellpadding=5 showfooter>
<footerstyle
backcolor = "maroon"
forecolor = "khaki"
font-bold font-italic />
</asp:detailsview>
DetailsView Members EditRowStyle HeaderStyle PagerStyle RowStyle