This documentation is archived and is not being maintained.

PagerButtons Enumeration

Specifies the types of buttons to display for navigating between pages of content in a paginated control.

Namespace:  System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public enum PagerButtons

Member nameDescription
NextPreviousA set of pagination controls consisting of Previous and Next buttons.
NumericA set of pagination controls consisting of numbered link buttons to access pages directly.
NextPreviousFirstLastA set of pagination controls consisting of Previous, Next, First, and Last buttons.
NumericFirstLastA set of pagination controls consisting of numbered and First and Last link buttons.

The PagerButtons enumeration represents the types of buttons to display for navigating between pages of content in a paginated control. This enumeration is used by the Mode property to specify the type of navigation buttons to display in controls that use the PagerSettings class, such as GridView and DetailsView.

PagerButtons.NextPrevious displays Next and Previous buttons to access the next and previous pages of the paginated control.

PagerButtons.NextPreviousFirstLast displays Next and Previous buttons as well as First and Last buttons to directly access the first and last pages of the paginated control.

PagerButtons.Numeric displays numeric link buttons corresponding to the pages of the paginated control.

PagerButtons.NumericFirstLast displays numeric link buttons corresponding to the pages of the paginated control as well as First and Last buttons to directly access the first and last pages of the paginated control.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0
Show: