Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disabling a Control in a grid based on another control
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00561183
Message ID:
00561189
Views:
24
Hi Christopher,

Try to put two checkboxes in the column that may have the enabled/disabled checkboxes. Both will have the same controlsource. One of the checkboxes will have the Enabled property .T. and the other .F.
Change the "DynamicCurrentControl" property of the Column control in order to change between the two checkboxes based on the value of the ControlSource of the first column. Put some code like this:
Grid.ColumnX.DymanicCurrentControl = "IIF(MyTable.MyState, 'Check1', 'Check2'"
-----
Fabio Vazquez
http://www.fabiovazquez.com
Previous
Reply
Map
View

Click here to load this message in the networking platform