The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets or sets a value indicating whether paging is enabled in a data-bound control.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public bool AllowPaging { get; set; }
property bool AllowPaging {
	bool get();
	void set(bool value);
member AllowPaging : bool with get, set
Public Property AllowPaging As Boolean

Property Value


true if paging is enabled; otherwise, false.

Use the property to specify whether a data-bound control has paging enabled. ASP.NET version 2.0 data-bound controls (such as GridView, DetailsView, and FormView) also use server-side paging to provide automatic paging functionality. For more information on server-side paging, see . When using the DataGrid control, you can also provide your own custom paging logic. For more information on custom paging, see and .

For more information about paging support for data-bound controls, see the AllowPaging property of the data-bound control.

.NET Framework
Available since 1.1
Return to top