WebGrid.Pager Method
Returns the HTML markup that is used to provide the specified paging support for the WebGrid instance.
Namespace: System.Web.Helpers
Assembly: System.Web.Helpers (in System.Web.Helpers.dll)
Syntax
'Declaration
Public Function Pager ( _
mode As WebGridPagerModes, _
firstText As String, _
previousText As String, _
nextText As String, _
lastText As String, _
numericLinksCount As Integer _
) As HelperResult
'Usage
Dim instance As WebGrid
Dim mode As WebGridPagerModes
Dim firstText As String
Dim previousText As String
Dim nextText As String
Dim lastText As String
Dim numericLinksCount As Integer
Dim returnValue As HelperResult
returnValue = instance.Pager(mode, firstText, _
previousText, nextText, lastText, _
numericLinksCount)
public HelperResult Pager(
WebGridPagerModes mode,
string firstText,
string previousText,
string nextText,
string lastText,
int numericLinksCount
)
public:
HelperResult^ Pager(
WebGridPagerModes mode,
String^ firstText,
String^ previousText,
String^ nextText,
String^ lastText,
int numericLinksCount
)
member Pager :
mode:WebGridPagerModes *
firstText:string *
previousText:string *
nextText:string *
lastText:string *
numericLinksCount:int -> HelperResult
public function Pager(
mode : WebGridPagerModes,
firstText : String,
previousText : String,
nextText : String,
lastText : String,
numericLinksCount : int
) : HelperResult
Parameters
- mode
Type: System.Web.Helpers.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
Type: System.String
The text for the HTML link element that navigates to the first page of the grid.
- previousText
Type: System.String
The text for the HTML link element that navigates to the previous page of the grid.
- nextText
Type: System.String
The text for the HTML link element that navigates to the next page of the grid.
- lastText
Type: System.String
The text for the HTML link element that navigates to the last page of the grid.
- numericLinksCount
Type: System.Int32
The number of numeric page links to display. The default is 5.
Return Value
Type: System.Web.WebPages.HelperResult
The HTML markup that provides paging support for the grid.