FirstPage method

Official Content
This documentation is valid for:

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




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.

TheRows property must have a value different from 0.

If the Web Panel which is being paged has filters, the FirstPage method should be added within the user event which applies the filter, so as to avoid that the displayed result corresponds to the page where it was previously located.

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



Event Enter

In this example when the user presses enter, the Grid will show the first group of records.

See Also

NextPage method
PreviousPage method
LastPage method
GotoPage method
RecordCount property
PageCount Property
Rows property
Grid paging on the Web