asp.net.ph

DetailsView.FooterRow Property

System.Web.UI.WebControls Namespace   DetailsView Class


.NET Framework version 2.0

Returns a DetailsViewRow object that represents the footer row displayed at the bottom of the DetailsView control.

Syntax


Script [ DetailsViewRow variable = ] DetailsView.FooterRow

This property can only be used programmatically; it cannot be set when declaring the control.

Property Value


variable A DetailsViewRow object that represents the footer row of the DetailsView control.

The property is read only with no default value.

Remarks

The footer row is displayed at the bottom of the DetailsView control when the FooterText or FooterTemplate property is set. Use the FooterRow property to programmatically access the DetailsViewRow object that represents the footer row.

NOTE: The FooterRow property is available only after the DetailsView 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 DetailsViewRow object that represents the footer row has been created; otherwise, the DetailsView control overwrites any changes.

To control the style of the footer row, use the FooterStyle property.

Example

The following example demonstrates how to programmatically set the style properties of the FooterRow in the DetailsView control at run time.

void chgSelectedProps ( Object src, EventArgs e ) {
   if ( productView.FooterRow != null ) {
      productView.FooterRow.BackColor = System.Drawing.Color.Khaki;
      productView.FooterRow.ForeColor = System.Drawing.Color.Maroon;
      productView.FooterRow.Font-Bold = true;
   }
}
  C# VB
See Also

DetailsViewRow   BottomPagerRow   HeaderRow   Row   TopPagerRow 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