Share via


WebGrid.Pager Method

Definition

Returns the HTML markup that is used to provide the specified paging support for the WebGrid instance.

public System.Web.WebPages.HelperResult Pager (System.Web.Helpers.WebGridPagerModes mode = System.Web.Helpers.WebGridPagerModes.NextPrevious | System.Web.Helpers.WebGridPagerModes.Numeric, string firstText = default, string previousText = default, string nextText = default, string lastText = default, int numericLinksCount = 5);
member this.Pager : System.Web.Helpers.WebGridPagerModes * string * string * string * string * int -> System.Web.WebPages.HelperResult
Public Function Pager (Optional mode As WebGridPagerModes = System.Web.Helpers.WebGridPagerModes.NextPrevious | System.Web.Helpers.WebGridPagerModes.Numeric, Optional firstText As String = null, Optional previousText As String = null, Optional nextText As String = null, Optional lastText As String = null, Optional numericLinksCount As Integer = 5) As HelperResult

Parameters

mode
WebGridPagerModes

A bitwise combination of the enumeration values that specify the methods that are provided for moving between the pages of the grid. The default is the bitwise OR of the NextPrevious and Numeric flags.

firstText
String

The text for the HTML link element that navigates to the first page of the grid.

previousText
String

The text for the HTML link element that navigates to the previous page of the grid.

nextText
String

The text for the HTML link element that navigates to the next page of the grid.

lastText
String

The text for the HTML link element that navigates to the last page of the grid.

numericLinksCount
Int32

The number of numeric page links to display. The default is 5.

Returns

The HTML markup that provides paging support for the grid.

Applies to