Refresh Grid event

Official Content
This documentation is valid for:

This event defines an action that must be taken before the Grid control is loaded. It is executed immediately before loading the grid. Data shown in the form is loaded from the database into the grid.



Event grid_control.Refresh

     Name of the grid control.
     Code associated to the event.



A Panel (for Web or Smart Devices) displays Customer Invoices for a certain date range.

The conditions are:

SupCod = &SupCod
PoDte >= &Date1
PoDte <= &Date2

So, if the end user were to change the values of &SupCod, &Date1 or &Date2, the grid must be reloaded to display the new information that satisfies the new condition.
Thus, the refresh event associated with that grid is executed.



The Refresh event is triggered (i.e. the grid is reloaded):

  • After the Start Event.
  • When the Refresh command has been executed from within another Event (usually the Enter event, or a User Defined event).
  • On Web Generator:
    • When executing Refresh command and Web User Experience property is Smooth, the Refresh of the grid is not executed in a POST HTTP unless the Grid Refresh method is executed.
    • Anytime the user chooses the Refresh option from the Menu Bar (or presses F5).
    • If Automatic refresh property of the web panel is "When variables in conditions change", when a variable appearing in Conditions is modified by the user (a Web Panel that displays attribute values) the Refresh event of the grid is triggered. This is because the value of the variables used in conditions will determine the range of attributes to be displayed in the Grid. 



Objects Web Panel objectPanel for Smart DevicesWork With for Smart Devices
Controls Grid control
Languages .NET, Java
Interfaces Web, Smart Devices


See Also