GridView::PageSize Property
.NET Framework (current version)
Gets or sets the number of records to display on a page in a GridView control.
Assembly: System.Web (in System.Web.dll)
Property Value
Type: System::Int32The number of records to display on a single page. The default is 10.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | The PageSize property is set to a value less than 1. |
When the paging feature is enabled (by setting the AllowPaging property to true), use the PageSize property to specify the number of records to display on a single page.
.NET Framework
Available since 2.0
Available since 2.0
Show: