asp.net.ph

PagerMode Enumeration

System.Web.UI.WebControls Namespace


Specifies the behavior mode of the pager in a DataGrid control.

Members


Member Name Description
NextPrev Renders a pager element that uses Next and Previous buttons.
NumericPages Renders a pager element that uses numeric buttons.

Remarks

The PagerMode enumeration represents the different display values that can be passed to the Mode property of a DataGridPagerStyle object.

Example

The following example demonstrates how to programmatically set the DataGridPagerStyle.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.

if ( chkNumbers.Checked )
   myGrid.PagerSettings.Mode = PagerMode.NumericPages;
else
   myGrid.PagerSettings.Mode = PagerMode.NextPrev;

 Show me 

See Also

PagerPosition   DataGridPagerStyle Skip Navigation Links




Previous page Back to top Next page

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note