asp.net.ph

PagerSettings.PageButtonCount Property

System.Web.UI.WebControls Namespace   PagerSettings Class


Sets or retrieves the number of link buttons to display in the pager when the Mode property is set to Numeric or NumericFirstLast.

Syntax


Inline <pagersettings pagebuttoncount = intValue ... >
Script GridView.PagerSettings.PageButtonCount = intValue

Property Value


intValue The number of link buttons to display concurrently in the pager element.

The property is read/write with a default value of 10.

Remarks

Use the PageButtonCount property to specify the number of numeric link buttons to display concurrently in the pager element of a control that supports pagination, such as the GridView, DetailsView, and FormView controls. The Mode property must be set to Numeric or NumericFirstLast for this property to have any effect.

If there are more pages in the grid than specified in this property, ellipses buttons ( ... ) are displayed in the pager element. When clicked, these buttons display the next or previous set of numeric buttons.

Example

The following example demonstrates how to set the PageButtonCount property at design time, to display five numeric page buttons concurrently in the pager element of a paginated control.

<pagersettings ...
   nextpagetext = "Next" 
   prevpagetext = "Back"
   pagebuttoncount=5 />
See Also

PagerSettings Members 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