FIX: Text Shifts to the Left and Down Slightly in a GridID: Q139145 The information in this article applies to:
SYMPTOMSWhen a text box in a grid column has its Sparse property set to false, the text shifts when the cell is activated. This occurs with numeric data that has an input mask.
WORKAROUNDSet the Margin property for the text box to 2 rather than the default of 0.
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.0a.
MORE INFORMATION
Steps to Reproduce Problem1. Create a new form. 2. Use and modify the Orditems table so that the Order_id field is numeric. 3. Add the Orditems table to the Data Environment of your form. 4. Drag the table from the Data Environment to the form to create a grid. 5. Set the ColumnCount property of the grid to 5. 6. Set the Input Mask of the column 2 text box to 99,999. 7. Set the column 2 Sparse property to false (.F.). 8. Run the form. Observe the positioning of the data in the second column. It aligns to the right and top of the cell. Clicking a cell results in the data moving to the left and down slightly. If you set the margin property of the text box for this column to 2, the data appears correctly. Additional query words: misalign
|
Last Reviewed: November 1, 1998 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |