The information in this article applies to:
SYMPTOMSIn 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.
STATUSThis behavior is by design. RESOLUTIONControls 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. MORE INFORMATIONThe following sample program reproduces the behavior described in this article. To run this example, copy and paste the code into a program file. When the grid is displayed, click the check box. As you navigate through the grid, all of the rows will display the same value for the check box. Steps to Reproduce BehaviorRun the following code:
Additional query words: Vfoxwin browse command bind
Keywords : FxtoolFormdes |
Last Reviewed: August 24, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |