PRB: Unable to Edit Blank Text Boxes in a Grid (134855)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
This article was previously published under Q134855 SYMPTOMS
In a grid, when you try to edit a column that doesn't have a control
source, the computer beeps and the text is not entered. You might expect
that the grid would accept data.
CAUSE
This is the correct behavior for columns that don't have a ControlSource
set. If you set the ControlSource, the column is editable. As the code
below demonstrates, a table defined with only two fields as a control
source for the grid disallows the additional column a place to store the
new information being entered when the button's click procedure is run.
WORKAROUND
Create a custom grid class with an Init procedure to alter the table or
ControlSource to allow the user to create and store new data by passing the
optional "init1,init2" parameter used with the addobject() function.
STATUS
This behavior is by design.
Modification Type: | Major | Last Reviewed: | 2/15/2000 |
---|
Keywords: | KB134855 |
---|
|