PRB: Setting the ReadOnly Property of a Control Does Not WorkID: Q130225 3.00 WINDOWS kbprg kbprb The information in this article applies to:
SYMPTOMSSetting the READONLY property of a control in a Grid does not have any effect at runtime. It is possible to edit the data in the Grid.
CAUSEThe READONLY attribute is controlled by the READONLY property of the Column object, which takes precedence over the READONLY property of the controls contained in a column.
WORKAROUNDSet the READONLY property of a column to .T. if you want users to view the data without editing it.
STATUSThis behavior is by design.
MORE INFORMATIONSteps to Reproduce Behavior 1. Create a form. 2. Right-click and select Data Environment. Add the SAMPLES\DATA\CUSTOMER 3. Place a grid on the form, and set the ColumnCount to 3.
4. Select the Column2 object, and set its READONLY property to .T.. 5. Select the Text1 object contained in Column1, and set its READONLY 6. Save and run the form. When the form is run, the data in Column1 can be
Additional reference words: 3.00 VFoxWin
KBCategory: kbprg kbprb
KBSubcategory: FxprgGrid
|
Last Reviewed: May 19, 1998 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |