TemplatePagerField::PagerTemplate Property
Gets or sets the custom content for the pager field in a DataPager control.
Assembly: System.Web.Extensions (in System.Web.Extensions.dll)
[BrowsableAttribute(false)] [TemplateContainerAttribute(typeof(DataPagerFieldItem), BindingDirection::TwoWay)] [PersistenceModeAttribute(PersistenceMode::InnerProperty)] public: virtual property ITemplate^ PagerTemplate { ITemplate^ get (); void set (ITemplate^ value); }
Property Value
Type: System.Web.UI::ITemplateA template object that contains the custom content for the pager field in a DataPager control. The default is nullptr, which indicates that this property is not set.
Use the PagerTemplate property to define a custom user interface (UI) for paging data. The PagerTemplate template usually contains navigation controls to page through data. It can also be used to display information about the underlying data source, such as the total number of records or the current page number.
To create a custom template declaratively, put a PagerTemplate element inside the TemplatePagerField object. You can then add the contents to the PagerTemplate element.
You can reference the DataPager control in binding expressions in the PagerTemplate template by using the Container property. This property provides access to the properties of the DataPager control, which includes the StartRowIndex, MaximumRows, and TotalRowCount properties.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.