FormView.TopPagerRow Property

 

Gets the FormViewRow object that represents the pager row displayed at the top of a FormView control.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

[<BrowsableAttribute(false)>]
abstract TopPagerRow : FormViewRow with get
[<BrowsableAttribute(false)>]
override TopPagerRow : FormViewRow with get

Property Value

Type: System.Web.UI.WebControls.FormViewRow

A FormViewRow that represents the top pager row in the FormView control.

When paging is enabled (when the AllowPaging property is set to true), an additional row called the pager row is automatically displayed in the FormView 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 TopPagerRow property to programmatically access the FormViewRow object that represents the top pager row in the FormView control.

System_CAPS_noteNote

The TopPagerRow property is available only after the FormView control creates the top pager row in the ItemCreated event.

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 TopPagerRow property must be performed after the FormView control has been bound to data; otherwise, the FormView control overwrites any changes.

The following example demonstrates how to use the TopPagerRow property to access the pager row displayed at the top of a FormView control. The pager row is then updated with additional content.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: