NextPage method

Official Content
This documentation is valid for:

Takes the user to the following group of records when the automatic paging of Grids and Free Style Grids is used.

Syntax

Grid.NextPage()

Scope

Controls: Grid, Free Style Grid
Generators: .NET, .NET Framework, Java, Ruby (up to GeneXus X Evolution 3)

Description

This method is available in Grids in Web Panels, whether the grid has Base Table or not.

The Rows property must have a value different from 0.  

This method efficiency is associated to the efficiency of the definition of the corresponding grid navigation. In other words, if the grid without paging has good response times, these times will be similar with paging.

Grids may be nested.

Values

This method may return some of the following values:

Value Result
0 Successful operation
1 The paging is not enabled in the grid.
2 Already on the last page 

Samples

Event Following.Click
    MyGrid.NextPage()
EndEvent

See Also

FirstPage method
LastPage method
PreviousPage method
GotoPage method
Rows property
Grid paging on the Web