Refresh( ) method (Progress.Data.BindingSource)
- Last Updated: January 21, 2026
- 2 minute read
- OpenEdge
- Version 12.8
- Documentation
(Windows only; GUI for .NET)
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
|
- 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
ProDataSetobject. If specified, theBindingSourceobject 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, theBindingSourceobject refreshes the current row in the bound .NET control (specified by thePositionproperty) 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.
Note: If you refill the temp-table whose
data you are viewing, you need to reopen the query you are bound to (or the
TOP-NAV-QUERY of the dataset if you are bound to a dataset)
before you call Refresh() or RefreshAll(). The BindingSource works off of a
query result set. If the result set is not correct,
Refresh() or RefreshAll() do not help.
Similarly, if you add or delete records, you must either add/remove entries from the result
set, or reopen the appropriate query. For more information, see the Synchronize data section in Use .NET Classes
in ABL Applications.See also
AutoSync property, Position property (BindingSource), RefreshAll( ) method