PRB: Controls Not Correctly Updated in a Grid (129226)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
This article was previously published under Q129226 SYMPTOMS
In a grid, as soon as you change the value of one control, the new value
appears throughout the whole column. The expected behavior is that only one
row displays the new value. Modifying the value of the Sparse property for
this column has no effect on this behavior.
CAUSE
The control that is added to the column of the grid has no ControlSource.
Therefore, when the value of the control is modified, there's no underlying
variable, so the data is stored in the control itself. The same check box
is populating the whole column in the grid. For example, one column of a
grid contains a check box. If you click the check box on one row, the value
of the check box will be modified. If the control does not have a
controlsource, the new value will be propagated across all of the rows in
the column.
The SPARSE property of the column object affects the display in the column.
It does not control the value associated with the control.
STATUS
This behavior is by design.
RESOLUTION
Controls that are to display different values across a column of a grid
need to be bound to data. You can set the Controlsource property of either
the control or the column that contains the control to a field that will
hold the value of the control.
Modification Type: | Major | Last Reviewed: | 8/25/1999 |
---|
Keywords: | KB129226 |
---|
|