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




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

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

You can help support asp.net.ph