asp.net.ph

GridView.ShowFooter Property

System.Web.UI.WebControls Namespace   GridView Class


.NET Framework version 2.0

Sets or retrieves a value specifying whether the footer is displayed in the GridView control.

Syntax


Inline <asp:gridview showfooter = true | false ... >
Script GridView.ShowFooter [ = true | false ]

Property Value

This property accepts or returns only a boolean value: true to display the footer; otherwise, false. Default value is true.

Remarks

Set this property to true to display the footer in the GridView. The appearance of the footer is controlled by using the FooterStyle property.

Example

The following example demonstrates how to programmatically set the ShowFooter property to hide or show the footer on the GridView control at run time, depending on user input.

void ShowHide ( Object src, EventArgs E ) {
   myGrid.ShowFooter = myGrid.ShowFooter ? false : true;
   myButton.Text = myGrid.ShowFooter ? "Hide footer" : "Show footer";
}
  C# VB

 Show me 

See Also

GridView Members   FooterStyle   ShowHeader Skip Navigation Links




Previous page Back to top Next page

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note