asp.net.ph

DataGridPagerStyle.PageButtonCount Property

System.Web.UI.WebControls Namespace   DataGridPagerStyle Class


Sets or retrieves the number of link buttons to display in the pager element of a DataGrid control.

Syntax


Inline <pagerstyle pagebuttoncount = intValue ... >
Script DataGrid.PagerStyle.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 DataGrid control. The Mode property must be set to PagerMode.NumericPages 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 DataGrid.

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

DataGridPagerStyle Members   DataGrid Class 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