DataGrid::PageCount Property

 

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

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

public:
[BrowsableAttribute(false)]
property int PageCount {
	int get();
}

Property Value

Type: System::Int32

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

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.

The following code example demonstrates how to use the PageCount property to determine the number of pages required to display the items in the DataGrid control.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: