PRB: Grid Behavior Isn't Consistent w/ that of List/Combo BoxLast reviewed: January 8, 1998Article ID: Q131213 |
The information in this article applies to:
SYMPTOMSVisual FoxPro allows list boxes, combo boxes, and grids within a form to be based on the output of a query (.QPR) file. The list box and combo box controls support a Requery method that causes the query to be updated. The grid does not support a Requery method to update the results of a query. Therefore, if the list box or combo box and the grid are populated with the results of the QPR file, the grid looses its data when the Requery method is used on the list box or combo box.
RESOLUTIONSet the RecordSource of the grid back to itself as shown in the code below:
Thisform.Grid1.RecordSource = Thisform.Grid1.RecordSourceNOTE: By changing the RecordSource of the grid, all the properties of the grid and its columns are set back to their default. Please follow the workaround listed in the REFERENCES section of this article if custom properties of the grid need to be saved.
STATUSThis behavior is by design.
MORE INFORMATION
Steps to Reproduce Behavior
REFERENCESMicrosoft Visual FoxPro Developer’s Guide, Chapter 8 For more information on this topic, please see the following article in the Microsoft Knowledge Base: ARTICLE-ID: Q140653 TITLE : Cursor-Based Grid Goes Blank If SQL SELECT Resets Cursor Keywords : buglist3.00 buglist3.00b FxtoolFormdes VFoxMac vfoxwin kbtool kbbuglist Version : 3.0 3.0b Platform : MACINTOSH WINDOWS Issue type : kbbug |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |