asp.net.ph

DataGrid.ShowFooter Property

System.Web.UI.WebControls Namespace   DataGrid Class


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

Syntax


Inline <asp:datagrid showfooter = true | false ... >
Script DataGrid.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 DataGrid. 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 DataGrid 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

DataGrid Members   FooterStyle 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