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 SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.