Takes the user to the previous group of returned records when the automatic paging of Grids and Free Style Grids is used.
Grid.PreviousPage()
Controls: Grid, Free Style Grid
Generators: .NET, .NET Framework, Java, Ruby (up to GeneXus X Evolution 3)
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.
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 |
Event Back.click
&err = MyGrid.PreviousPage()
If &err = 2
Message.Caption = ‘You already are in the first page’
EndIf
EndEvent
FirstPage method
NextPage method
LastPage method
GotoPage method
Rows property
Grid paging on the Web