System.Web.UI.WebControls Namespace PagerSettings Class
Sets or retrieves the vertical position of the pager element in a control that supports pagination.
Inline |
<pagersettings position = enumValue ... > |
Script |
GridView.PagerSettings.Position = enumValue |
The property is read/write with a default value of Bottom.
Use the Position property to specify the location where the pager element is displayed in a control that supports pagination, such as the GridView, DetailsView, and FormView controls. The pager element can be displayed at the upper edge, the lower edge, or at both the upper and lower edges of the grid.
The following example demonstrates how to programmatically set the PagerSettings.Position property at run time. This simple script dynamically changes the display position of the pager based on the state of a CheckBox named chkTop.
plansGrid.PagerSettings.Position = ( chkTop.Checked ) ?
PagerPosition.Top : PagerPosition.Bottom;
Show me
PagerSettings Members PagerPosition Enum Mode Visible