PRB: DataBound Controls Not Updated with DataEnvironment Using Refresh Method (216666)
The information in this article applies to:
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
This article was previously published under Q216666 SYMPTOMS
The DataCombo and DataGrid controls are not refreshed when using the Refresh method. This behavior is exhibited when using the DataEnvironment.
RESOLUTION
There are several workarounds. One is to use the ADO Data Control instead of the DataEnvironment. Another is to rebind the controls to the DataEnvironment.
The following code rebinds the controls. Replace the code in the Refresh Click event in the Steps to Reproduce Behavior section with the following:
Set DataGrid1.DataSource = DataEnvironment1
Set DataCombo1.DataSource = DataEnvironment1
Set DataCombo1.RowSource = DataEnvironment1
STATUS
This behavior is by design.
REFERENCES
For additional information about binding data controls, please see the following article in the Microsoft Knowledge Base:
191457 PRB: DataEnvironment Recordset Requery Does Not Refresh Controls
Modification Type: | Major | Last Reviewed: | 8/16/1999 |
---|
Keywords: | kbDataBinding kbDataEnv kbprb KB216666 |
---|
|