Skip to main content

GridViewPagerState.PageSize Property

Gets or sets the number of rows that can be displayed on a grid page.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v26.1.dll

NuGet Package: DevExpress.Web.Mvc5

Declaration

public int PageSize { get; set; }

Property Value

Type Description
Int32

An integer value that specifies the maximum number of rows that can be displayed on a page.

Remarks

Use the PageSize property to specify the maximum number of rows that can be displayed on a page. To display all the rows in a grid, set the ASPxGridViewPagerSettings.Mode property to GridViewPagerMode.ShowAllRecords. In this case, the PageSize property is not in effect.

End-users can change the page size by using the page size item element. To display all rows in a grid, end-users can click the All item in the page size item dropdown window, or click the All navigation button.

Note

When a grid displays all rows, the PageSize property returns the last specified numerical value.

See Also