Assembly: System.Web (in System.Web.dll)
[<BrowsableAttribute(false)>] abstract TopPagerRow : DetailsViewRow with get [<BrowsableAttribute(false)>] override TopPagerRow : DetailsViewRow with get
When paging is enabled (by setting the AllowPaging property 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 property to programmatically access the DetailsViewRow object that represents the top pager row in the DetailsView control.
This property is commonly used when you need to programmatically manipulate the top pager row, for example when adding custom content. Any modification to the property must be performed after the DetailsView control has been rendered; otherwise, the DetailsView control will overwrite any changes.
The following code example demonstrates how to use the property to access the top pager row of the DetailsView control during the ItemCreated event. Two Label controls within the custom pager row are then updated with the current page number and total number of pages.