Name
DataGridPagerStyle
Synopsis
This class represents a special style class derived from TableItemStyle
that allows you to
configure the pager controls for the DataGrid
control. It is provided through
the DataGrid.PagerStyle
property. Pager
controls (special links that allow you to see one “page” of data at a time) are
displayed in a separate row at the bottom of the table, provided you have enabled the DataGrid.AllowPaging
property.
Aside from setting the standard style properties, you can also use the Mode
property to
configure the type of pager buttons used (multiple numeric or previous/next). If you
are using previous/next buttons
(PagerMode.NextPrev
), you can also set
the associated text for the links using the NextPageText
and PrevPageText
properties (which default to the < and > signs). If you use numeric link
buttons (PagerMode.NumericPages
), you
can also set the maximum number of links that will be displayed at a time through the PageButtonCount
property. If there are more pages than specified in this property, a link with
ellipses (...) is automatically displayed in the pager row, which allows the user to
show the next or previous set of numeric links.
Public NotInheritable Class DataGridPagerStyle : Inherits TableItemStyle ' Public Instance Properties Public Property Mode As PagerMode Public Property NextPageText As String Public Property PageButtonCount As Integer Public Property Position As PagerPosition Public Property PrevPageText As String Public Property Visible ...
Get ASP.NET in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.