This documentation is archived and is not being maintained.

DataGrid.PageCount Property

Gets the total number of pages required to display the items in the DataGrid control.

[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 total number of pages required to display the items in the DataGrid control.

Remarks

Use this property to programmatically determine the number of pages required to display the items in the DataGrid control. This property is only used when the AllowPaging property is set to true.

Requirements

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also

DataGrid Class | DataGrid Members | System.Web.UI.WebControls Namespace | AllowPaging

Show: