PRB: SET RELATION TO Has No Effect in Grid from Child (156030)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 6.0
This article was previously published under Q156030 SYMPTOMS
If you create a form containing a grid whose record source is a child table
in a relation that is broken with the SET RELATION TO command, the grid
behaves as if the relation were still set and continues to show a subset of
records from the child table.
CAUSE
For performance reasons, the relation information is cached and is not
reread until the grid is forced to reevaluate its record source.
WORKAROUND
Set the grid's record source to the grid itself to clear the cached
information and to force the grid to reevaluate its record source, as in
the following example:
Thisform.Grid1.RecordSource = Thisform.Grid1.RecordSource
Additionally, setting the grid's record source to itself does not
cause the grid to lose nondefault properties as it did in Visual FoxPro
3.0b.
STATUS
This behavior is by design.
Modification Type: | Major | Last Reviewed: | 10/15/2003 |
---|
Keywords: | KB156030 |
---|
|