asp.net.ph

DetailsView.BottomPagerRow Property

System.Web.UI.WebControls Namespace   DetailsView Class


.NET Framework version 2.0

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

Syntax


Script [ DetailsViewRow variable = ] DetailsView.BottomPagerRow

Property Value


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

The property is read only with no default value.

Remarks

When paging is enabled (when the AllowPaging property is set to true), an additional row called the pager row is automatically displayed in the DetailsView control.

The pager row contains controls that allow the user to navigate to other records, and can be displayed at the top, the bottom, or both the top and bottom of the control. Use the BottomPagerRow property to programmatically access the DetailsViewRow object that represents the bottom pager row in the DetailsView control.

NOTE: The BottomPagerRow property is available only after the DetailsView control creates the bottom pager row in the ItemCreated event.

This property is commonly used when you need to programmatically manipulate the bottom pager row, for example when adding custom content. Any modification to the BottomPagerRow property must be performed after the DetailsViewRow object that represents the bottom pager row has been created; otherwise, the DetailsView control overwrites any changes.

Example

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

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

DetailsViewRow   FooterRow   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