Version

Refresh(RefreshRow,Boolean,Boolean) Method

Refresh the display and/or refetch the data with or without events.
Syntax
'Declaration
 
Public Overloads Sub Refresh( _
   ByVal action As RefreshRow, _
   ByVal recursive As Boolean, _
   ByVal initializeTemplateAddRow As Boolean _
) 
public void Refresh( 
   RefreshRow action,
   bool recursive,
   bool initializeTemplateAddRow
)

Parameters

action
The refresh action.
recursive
true to recursively refresh all descendant rows.
initializeTemplateAddRow
true to force the Initialization of TemplateAddRows (in addition to normal rows).
Remarks

Generally, painting a control is handled automatically while no events are occurring. However, there may be situations where you want the form or control updated immediately, for example, after some external event has caused a change to the form. In such a case, you would use the Refresh method.

The Refresh method can also be used to ensure that the user is viewing the latest copy of the data from the record source.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also