Try OpenEdge Now
skip to main content
ABL Reference
Class Properties and Methods Reference : Refresh( ) method (Progress.Data.BindingSource)
 

Refresh( ) method (Progress.Data.BindingSource)

(Windows only; GUI for .NET only)
Refreshes field values displayed for the current or specified row in any bound .NET control with values from the corresponding record in the bound ABL data source object.
You can use this method when the BindingSource object is bound to a query or a buffer. When bound to a ProDataSet object, this method applies only to the top-level table displayed in the .NET control.
Note: To refresh a row in a child table, you must use the RefreshAll( ) method.
Return type: VOID
Access: PUBLIC
Applies to: Progress.Data.BindingSource class

Syntax

Refresh ( [ INPUT record-index AS INTEGER ] )
record-index
An optional INTEGER value specifying a 1-based record index position in either the result set of a bound query or the top-level query in a ProDataSet object. If specified, the BindingSource object refreshes the corresponding row in any bound .NET control with values from the specified record in the bound ABL data source object. If not specified, the BindingSource object refreshes the current row in the bound .NET control (specified by the Position property) with values from the corresponding record in the bound ABL data source object.
Invoking this method does not change the editing mode of the .NET control.

See also

AutoSync property, Position property (BindingSource), RefreshAll( ) method