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)

public:
virtual property FormViewRow^ TopPagerRow {
	FormViewRow^ get ();
}
/** @property */
public FormViewRow get_TopPagerRow ()

public function get TopPagerRow () : FormViewRow

Not applicable.

Property Value

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.

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.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: