DataPager::PageSize Property
.NET Framework (current version)
Gets or sets the number of records that are displayed for each page of data.
Assembly: System.Web.Extensions (in System.Web.Extensions.dll)
Property Value
Type: System::Int32The number of records that are displayed for each page of data. The default is 10.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | The PageSize property is set to a value less than 1. |
Use the PageSize property to specify the size of a page of data.
If you have multiple DataPager controls in a page that are bound to the same ListView control, be sure to set the PageSize property of these controls to the same value. If the DataPager controls are set to use different page sizes, the last DataPager control to be initialized determines the actual page size of the ListView control.
.NET Framework
Available since 3.5
Available since 3.5
Show: