To obtain, at runtime, the number of pages of a grid or Freestyle grid load as a result of paging.
Control.PageCount
Type Returned:
Numeric
Where:
Control
Grid present in the form
-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.
If MyTab.ActivePage < MyTab.PageCount
MyTab.ActivePage = MyTAb.ActivePage + 1
Else
Btn_Next.Caption = “Finish”
EndIf
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
RecordCount property
Grid paging on the Web