Event.Form.MainGrid.Reload()
.Reload() forces the namedgrid object to reload the data. Typically this is done when data has been updated on the underlying data table object (cursor in Deacom language) and you want those changes to reflect on the grid in the form layout.
Note: Only grids that are visible to the user (meaning the grid is currently showing on the screen) will reload.
Applies To
Properties and Methods
None
Available
The .Reload() method is available in:
- 15.03.016
- All newer builds
Note: The .Reload() method and all sub-classes, properties, and methods are only available in Form Layout scripts.
Type
Method
Syntax
Event.Form.MainGrid.Reload();
Parameters
None
Example
let lpGrid = Event.Form.Grids('Grid_NewOrd1'); //--This could also have been Event.Form.MainGrid on the neword1 form layout
//--Force the grid to reload
lpGrid.Reload();