Official Content

Takes the end user to the next group of records when the automatic paging of Grids / Free Style Grids / Tabular Grids is used.

Syntax

GridName.NextPage()

Where:

GridName
        Is the name of the control to which the method is applied.

Scope

Controls: Grid, Free Style GridTabular Grid.
Generators: .NET, .NET Framework, JavaAngular.

Description

When the automatic paging of a particular Grid is used (its Rows property must be set to a value other than 0), and automatic paging buttons are also provided, if, for any reason, you do not want to use those buttons, or some of them, and you want to define a specific paging action, you can then use the NextPage method as well as others related. 

This method is available for:

whether the control has Base Table or not.

Nested grids support this method.

This method's efficiency relates to the efficiency of the definition of the corresponding grid navigation. In other words, if the Grid without paging has good response times, then such times will be similar to when you have paging.

Values

For Web Panel objects, 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   //Following is the name of a control included in the screen.
    MyGrid.NextPage()
EndEvent

See Also

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


Last update: April 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant