System.Web.UI.WebControls Namespace
Specifies the types of buttons to display for navigating between pages of content in controls that support pagination.
Member Name |
Description |
NextPrevious |
Renders a set of pagination controls consisting of Previous and Next buttons. |
NextPreviousFirstLast |
Renders a set of pagination controls consisting of Previous, Next, First, and Last buttons. |
Numeric |
Renders a set of pagination controls consisting of numbered link buttons to access pages directly. |
NumericFirstLast |
Renders a set of pagination controls consisting of numbered and First and Last link buttons. |
The PagerButtons enumeration represents the different display values that can be passed to the Mode property of a PagerSettings object.
The following example demonstrates how to programmatically set the PagerSettings.Mode property at run time. This simple script dynamically changes the display mode of the pager based on the state of a CheckBox named chkNumbers.
plansGrid.PagerSettings.Mode = ( chkNumbers.Checked ) ?
PagerButtons.Numeric : PagerButtons.NextPrevious;
Show me
PagerPosition PagerSettings