Last Grid Record Has Been Read
When there are no more records fetched from the database, the engine fires Last Grid Record Has Been Read event. At this point, the runtime structures contain these values:
BC = Values from the database (from the last record read).
FC = Values from the database (if the field is a database field).
GC = Values from the database (from the last record read).
I = Values passed from a calling form (if any).
PO = Values passed from POs.
The GC values appear on the last grid row.
This diagram illustrates the information in the runtime structures just before the system runs Last Grid Record Has Been Read:

The Last Grid Record Has Been Read event is commonly used to write total lines to the grid and to display totals that are based on grid values.