FIX: After Removing Text in Grid Other Data Appears TruncatedID: Q134436 3.00 3.00b WINDOWS kbtool kbbuglist kbfixlist The information in this article applies to:
SYMPTOMSAfter you add an edit box as a control to a grid column and delete some of the text in the edit box, the text in the other records in this column appear to be truncated to the new length of the text in the edit box.
WORKAROUNDSet the Sparse Property for the grid column that contains the edit box to True (.T.).
STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem has been fixed in Visual FoxPro 5.0 for Windows.
MORE INFORMATIONThis behavior happens whether the grid is created using the Grid Builder or manually in the Form Designer.
Steps to Reproduce ProblemNOTE: To understand the following steps, you need working knowledge of the Visual FoxPro Form Designer. See Chapter 9 of the Microsoft Visual FoxPro "Developer's Guide" for more information on working with the Form Designer. 1. Open the Testdata.dbc database found in the \VFP\Samples\Data directory. 2. Create a new form. 3. Add the Customer table from the Testdata database to the Data 4. Add a grid object to the form.
5. Set the following properties for the grid, and resize it as desired.
6. Add an Editbox control to either column 2 or 3 (or both) of the grid. To
7. Set the following properties for the column(s) that the Editbox control
8. For the other columns in the grid (columns 1 and 3 for this example),
9. Save and Run the form.
10. The text in the second column of the first record should be "Alfreds The grid can also be designed by clicking Builder on the shortcut menu
displayed in Step 6.c above. In the Layout tab of the Builder dialog box,
set the Control Type for column 2 to be Editbox.
REFERENCESFor additional information on adding and removing objects from the columns of a grid, please see the following articles in the Microsoft Knowledge Base:
KBCategory: kbtool kbbuglist kbfixlist
KBSubcategory: FxtoolFormdes VFoxWin buglist3.00 buglist3.00b fixlist5.00
Additional reference words: 3.00 3.00b
|
Last Reviewed: October 23, 1997 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |