BUG: CheckBox Control in Grid Cannot Be Set to Read Only

Last reviewed: April 25, 1997
Article ID: Q140792
The information in this article applies to:
  • Microsoft Visual FoxPro for Windows, versions 3.0, 3.0b, 5.0, 5.0a

SYMPTOMS

Setting the Readonly property to True for a column that contains a check box doesn't prevent the check from being changed at run time. Setting the readonly property of a column containing a text box to true prevents the entries in that column from being changed at run time.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

WORKAROUND

Set the enabled property of the column to false. The column will display but in grayed-out colors. These colors can be changed. However, the column will not display disabledforecolor as black even with an entry of 0,0,0. The check box also will remain grayed out.

MORE INFORMATION

Steps to Reproduce Problem

  1. Create a form, and place the Products table in the data environment of the form. Drag the products table onto the form to place a grid on the form.

  2. Change the grid's Columncount property to 2.

  3. Make the control source for column1 product_id, and set the readonly property to true.

  4. Add a check box to column2, and make the controlsource for column2 discontinu, which is a logical field. Set the column2 readonly property to true. Change the sparse setting for column2 to false.

  5. Remove text1 under column2 by selecting it in the property sheet, clicking the title bar of the form, and pressing the DELETE key.

  6. Set the readonly property for the grid to true.

  7. Run the form. You will not be able to change the product_id in column1, but you will be able to select and clear the check box in column2 to change the field.


Additional query words: 5.00 3.00 3.0b
Keywords : buglist3.00 buglist3.0b buglist5.00 FxprgGeneral vfoxwin vfpbug5.0a kbbuglist
Version : 3.0 3.0b 5.0 5.0a
Platform : WINDOWS
Issue type : kbbug


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: April 25, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.