This documentation is archived and is not being maintained.
PagedDataSource.PageCount Property
.NET Framework 1.1
Gets the total number of pages necessary to display all items in the data source.
[Visual Basic] Public ReadOnly Property PageCount As Integer [C#] public int PageCount {get;} [C++] public: __property int get_PageCount(); [JScript] public function get PageCount() : int;
Property Value
The number of pages necessary to display all items in the data source.
Remarks
Use the PageCount property to determine the number of pages necessary to display all items in the data source.
Note If the DataSource property is a null reference (Nothing in Visual Basic), 0 is returned. If the IsPagingEnabled property is set to false or the DataSourceCount property is set to 0, 1 is returned.
Requirements
Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family
See Also
PagedDataSource Class | PagedDataSource Members | System.Web.UI.WebControls Namespace
Show: