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)
public: [BrowsableAttribute(false)] [PersistenceModeAttribute(PersistenceMode::InnerProperty)] [TemplateContainerAttribute((DataPagerFieldItem^::typeid), BindingDirection::TwoWay)] property ITemplate^ PagerTemplate { virtual ITemplate^ get(); virtual void set(ITemplate^ value); }
Property Value
Type: System.Web.UI::ITemplate^A template object that contains the custom content for the pager field in a DataPager control. The default is null, 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.
Available since 3.5