Skip to main content
A newer version of this page is available. .
Tab

ASPxVerticalGridPagerSettings.PageSize Property

Gets or sets the maximum number of records that can be displayed on a page.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v19.2.dll

Declaration

[DefaultValue(5)]
public int PageSize { get; set; }

Property Value

Type Default Description
Int32 5

An integer value that specifies the number of records.

Property Paths

You can access this nested property as listed below:

Object Type Path to PageSize
ASPxVerticalGrid
.SettingsPager.PageSize
MVCxVerticalGrid
.SettingsPager.PageSize
VerticalGridSettings
.SettingsPager.PageSize
VerticalGridSettings<ColumnType>
.SettingsPager.PageSize

Remarks

Use the PageSize property to specify the maximum number of records that can be displayed on a page. To display all the records in a grid, set the ASPxVerticalGridPagerSettings.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 records in a grid, end-users can click the All item in the page size item dropdown window, or click the All navigation button.

When a grid page size is changed by end-user interactions, the ASPxGridBase.PageSizeChanged event fires.

Note

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

See Also