| |||||||||||||
GridView.PagerTemplate PropertySystem.Web.UI.WebControls Namespace GridView Class .NET Framework version 2.0 Specifies the template to use for the pager row in a GridView control. Syntax<asp:gridview ... >
<pagertemplate>
... template definition here
</pagertemplate>
</asp:gridview>
Property ValueAn ITemplate interface that defines how the pager row of a GridView control is rendered. The property is read/write with no default value. RemarksThe PagerTemplate describes the layout of elements to render in the pager section of a GridView control. When the paging feature is enabled ( AllowPaging is set to true ), a pager row is displayed in the GridView that contains the controls to enable users to navigate to the different pages in the control. The PagerTemplate enables customizing this paging interface.
To specify a template for the pager section of a GridView, declare a <PagerTemplate> element between the opening and closing tags of the control. You can then list the contents of the template between the opening and closing In addition, the appearance for this template can be set using the PagerStyle property. Typically, button controls are added to the pager template to perform the paging operations. The GridView control performs a paging operation when a button control with its CommandName property set to Page is clicked. The button's CommandArgument property determines the type of paging operation to perform. The following table lists the command argument values supported by the GridView control.
See Also |
| ||||||||||||
Check out related books at Amazon
© 2000-2008 Rey Nuñez All rights reserved.
If you have any question, comment or suggestion
about this site, please send us a note
You can help support aspxtreme