System.Web.UI.WebControls Namespace GridView Class
.NET Framework version 2.0
Returns a GridViewRow object that represents the footer row displayed at the bottom of the GridView control.
Script |
[ GridViewRow variable = ] GridView.FooterRow |
This property can only be used programmatically; it cannot be set when declaring the control.
The property is read only with no default value.
The footer row is displayed at the bottom of the GridView control when the FooterText or FooterTemplate property is set. Use the FooterRow property to programmatically access the GridViewRow object that represents the footer row.
NOTE: The FooterRow property is available only after the GridView control creates the footer row in the ItemCreated event.
This property is commonly used when you need to programmatically manipulate the footer row, for example when adding custom content. Any modification to the FooterRow property must be performed after the GridViewRow object that represents the footer row has been created; otherwise, the GridView control overwrites any changes.
To control the style of the footer row, use the FooterStyle
property.
The following example demonstrates how to programmatically set the style properties of the FooterRow in a GridView control at run time.
Show me
GridViewRow BottomPagerRow HeaderRow TopPagerRow