GridView.PageSize Property
.NET Framework 2.0
Note: This property is new in the .NET Framework version 2.0.
Gets or sets the number of records to display on a page in a GridView control.
Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)
GridView Members
System.Web.UI.WebControls Namespace
System.Web.UI.WebControls.PagerSettings
System.Web.UI.WebControls.TableItemStyle
GridView.AllowPaging Property
GridView.PageCount Property
GridView.PageIndex Property
GridView.PagerSettings Property
GridView.PagerStyle Property
GridView.PagerTemplate Property
PageIndexChanged
PageIndexChanging
Assembly: System.Web (in system.web.dll)
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.
| Topic | Location |
|---|---|
| How to: Enable Default Paging in the GridView Web Server Control | Building ASP .NET Web Applications in Visual Studio |
Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.
Reference
GridView ClassGridView Members
System.Web.UI.WebControls Namespace
System.Web.UI.WebControls.PagerSettings
System.Web.UI.WebControls.TableItemStyle
GridView.AllowPaging Property
GridView.PageCount Property
GridView.PageIndex Property
GridView.PagerSettings Property
GridView.PagerStyle Property
GridView.PagerTemplate Property
PageIndexChanged
PageIndexChanging
Community Additions
ADD
Show: