PreviousPage method

Official Content
This documentation is valid for:

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

Syntax

Grid.PreviousPage()

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 Panel objects, whether the Grid has Base Table or not.

The Rows property must have a value different from 0.   

This method's 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 first page

Samples

Event Back.click
    &err = MyGrid.PreviousPage()
    If &err = 2
       Message.Caption = ‘You already are in the first page’
     EndIf
EndEvent

See Also

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