System.Web.UI.WebControls Namespace
Specifies the position of the pager in a control that supports pagination.
Member Name |
Description |
Top |
Positions the pager at the top of the control ( default ). |
Bottom |
Positions the pager at the bottom of the control. |
TopAndBottom |
Positions the pager at the top and bottom of the control. |
The PagerPosition enumeration represents the possible values that can be passed to the Position property of a PagerSettings object.
The following example demonstrates how to programmatically set the PagerSettings.Position property at run time. This simple script dynamically changes the position of the pager based on the state of a CheckBox named chkTop.
plansGrid.PagerSettings.Position = ( chkTop.Checked ) ?
PagerPosition.Top : PagerPosition.Bottom;
Show me
PagerButtons PagerSettings