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; }
public:
property int PageCount {
	int get();
}
member PageCount : int with get
Public ReadOnly Property PageCount As Integer

Property Value

Type:

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

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

System_CAPS_noteNote

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

.NET Framework
Available since 1.1
Return to top