asp.net.ph

FormView.FooterStyle Property

System.Web.UI.WebControls Namespace   FormView Class


.NET Framework version 2.0

Sets or retrieves the style properties for the footer section of a FormView control.

Syntax


Script FormView.FooterStyle.Property [ = enumValue ]

Property Value

A TableItemStyle object that defines the style properties for the footer section of a FormView.

Remarks

Use this property to provide a custom style for the footer row in a FormView 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 FormView control.

The FooterStyle subproperties can be set declaratively using either of the following methods:

  • Include an attribute in the opening tag of the FormView control in the form FooterStyle-Property
    <asp:formview ... 
       footerstyle-property=value
       ... >
    
    </asp:formview>
  • Include a <FooterStyle> element between the opening and closing tags of the FormView control
    <asp:formview ... >
    
       <footerstyle
          ... property definitions here />
    
    </asp:formview>

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.

Example

The below snippet shows setting the FooterStyle property of a FormView control at design time.

<asp:formview id = "msgView" 
   runat = "server" 
   cellpadding=5 showfooter>

   <footerstyle
      backcolor = "maroon"
      forecolor = "khaki"
      font-bold font-italic />

</asp:formview>
See Also

FormView Members   EditRowStyle   HeaderStyle   PagerStyle   RowStyle Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 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 asp.net.ph