Official Content

To obtain, at runtime, the number of pages of a grid or Freestyle grid load as a result of paging.

Syntax

Control.PageCount
 
Type Returned:
Numeric

Where:
Control
    Grid present in the form

Values

-1: The grid does not have Base Table or the conditions are evaluated client side.
N >= 0:  Number of grid pages.

This property applies only at execution time.

Example

If MyTab.ActivePage < MyTab.PageCount 
   MyTab.ActivePage = MyTAb.ActivePage + 1 
Else
   Btn_Next.Caption = “Finish”
EndIf

Scope

Objects: Transactions, Web Panels
Controls on the Web: Free Style Grids, Grids
Languages: .NET, Java, Ruby (up to GeneXus X Evolution 3), Visual FoxPro (up to GeneXus X Evolution 3)
Interfaces: We

See Also

RecordCount property
Grid paging on the Web


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