PRB: Numeric Values Shift in Grid Column Containing NULL Values (189601)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 5.0a
This article was previously published under Q189601 SYMPTOMS
A grid column that has its Sparse property set to .F. is bound to a numeric
field that allows NULL values. When values in that column are edited and
the grid is scrolled, values in that column may shift from left to right
and back.
CAUSE
The default column Alignment setting is "3 [ASCII 150] Automatic". The column does
not know whether to format the NULL values as character or numeric.
RESOLUTION
Change the grid column Alignment property to "1 - Middle Right". To
demonstrate this behavior, place the following code in the Init event of
the form:
THIS.GRD1.COLUMN1.ALIGNMENT = 1
STATUS
Microsoft is researching this problem and will post new information here in
the Microsoft Knowledge Base as it becomes available.
Modification Type: | Major | Last Reviewed: | 12/11/1999 |
---|
Keywords: | kbprb KB189601 |
---|
|