| |||||
GridView.FooterStyle PropertySystem.Web.UI.WebControls Namespace GridView Class .NET Framework version 2.0 Sets or retrieves the style properties for the footer section of a GridView control. Syntax
Property ValueA TableItemStyle object that defines the style properties for the footer section of a GridView. RemarksUse this property to provide a custom style for the footer row in a GridView 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 GridView 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.
ExampleThe below snippet shows setting the FooterStyle property of a GridView control at design time. <asp:gridview id = "myGrid"
runat = "server"
cellpadding=5 showfooter>
<footerstyle
backcolor = "maroon"
forecolor = "khaki"
font-bold font-italic />
</asp:gridview>
The following example shows setting the FooterStyle property of a footer row that is used to display custom information at run time.
See AlsoGridView Members ShowFooter HeaderStyle |
| ||||
Check out related books at Amazon
© 2000-2008 Rey Nuñez All rights reserved.
If you have any question, comment or suggestion
about this site, please send us a note
You can help support aspxtreme