DataPager::PageSize Property
Gets or sets the number of records that are displayed for each page of data.
Assembly: System.Web.Extensions (in System.Web.Extensions.dll)
| 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.
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.