Export (0) Print
Expand All
Expand Minimize

DetailsView::PagerTemplate Property

Gets or sets the custom content for the pager row in a DetailsView control.

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

[TemplateContainerAttribute(typeof(DetailsView))]
[PersistenceModeAttribute(PersistenceMode::InnerProperty)]
[BrowsableAttribute(false)]
public:
virtual property ITemplate^ PagerTemplate {
	ITemplate^ get ();
	void set (ITemplate^ value);
}
<asp:DetailsView>
	<PagerTemplate>ITemplate</PagerTemplate>
</asp:DetailsView>

Property Value

Type: System.Web.UI::ITemplate
A System.Web.UI::ITemplate that contains the custom content for the pager row. The default value is null, which indicates that this property is not set.

A pager row is displayed in a DetailsView control when the paging feature is enabled (by setting the AllowPaging property to true). The pager row contains the controls that allow the user to navigate to the different pages in the control. Instead of using the built-in pager row user interface (UI), you can define your own UI by using the PagerTemplate property. To specify a custom template for the pager row, first place <PagerTemplate> tags between the opening and closing tags of the DetailsView control. You can then list the contents of the template between the opening and closing <PagerTemplate> tags. To control the appearance of the pager row, use the PagerStyle property.

The following code example demonstrates how to use the PagerTemplate property to create a custom pager row.

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

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft