Knowledge Base

FIX: Text Shifts to the Left and Down Slightly in a Grid

Article ID: 139145

Article Last Modified on 10/15/2003


APPLIES TO


This article was previously published under Q139145

SYMPTOMS

When 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.

WORKAROUND

Set the Margin property for the text box to 2 rather than the default of 0.

STATUS

Microsoft 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 Problem

  1. 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

Keywords: kbbug kbfix kbvfp500afix KB139145