Try OpenEdge Now
skip to main content
GUI for .NET Programming
Binding ABL Data to .NET Controls : Managing data updates : Synchronizing data : Using the Refresh methods
Using the Refresh methods
The Refresh methods provide a way to ensure that changes to the records in the underlying ABL data source object are immediately propagated to the bound UI control. If you do not specify the optional record-index parameter, the Refresh( ) method acts on the current record, indicated by the Position property, of the top-level query. The optional parameter enables you to specify a different record in the top-level query.
Note: Because it is the index into the result list, the optional parameter is a 1-based index. For further information, see 1-based or 0-based indexes.
The RefreshAll( ) method acts on all records in the ABL data source object. The current values in the ABL data source object are pushed out to all bound UI controls. This method also refreshes values in the ProBindingSource's child tables. The Refresh( ) method does not work on child buffers.
The Refresh methods do not change the state of any ongoing transactions. If your application calls to reset the current screen values while a user is editing a record, the Update transaction is still open, the bound UI control is still in edit mode, and the user can redo his edits. For UI controls with built-in Undo functionality, the Refresh methods do not interfere with that functionality.