PagedDataSource::PageCount Property

 

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:
property int PageCount {
	int 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: