BUG: Unbinding Grid with SetAll Method Still Displays Data (134707)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
- Microsoft Visual FoxPro for Windows 3.0b
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 5.0a
- Microsoft Visual FoxPro for Windows 6.0
This article was previously published under Q134707 SYMPTOMS
After executing the following command to unbind the grid columns from their
sources of data, Visual FoxPro still shows data in some of the grid cells
when you click the cell:
<form name>.<grid name>.SetAll("ControlSource","","Column")
CAUSE
The text box (the default control) in the grid columns is caching the last
value it knew about.
WORKAROUND
In addition to setting the data source to nothing, you need to set the
Value property of the text boxes for the grid columns to nothing ("").
<form name>.<grid name>.SetAll("Value","","TextBox")
STATUS
Microsoft has confirmed this to be a problem in the Microsoft products
listed at the beginning of this article. We are researching this problem
and will post new information here in the Microsoft Knowledge Base as it
becomes available.
Modification Type: | Major | Last Reviewed: | 5/7/2003 |
---|
Keywords: | kbBug KB134707 kbAudDeveloper |
---|
|