PagedDataSource.PageCount Property

 
System_CAPS_noteNote

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

Gets the total number of pages necessary to display all items in the data source.

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

public int PageCount { get; }

Property Value

Type: System.Int32

The number of pages necessary to display all items in the data source.

Use the PageCount property to determine the number of pages necessary to display all items in the data source.

System_CAPS_noteNote

If the DataSource property is null, 0 is returned. If the IsPagingEnabled property is set to false or the DataSourceCount property is set to 0 or less, 1 is returned.

.NET Framework
Available since 1.1
Return to top
Show: