Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disable controls in a Grid
Message
General information
Forum:
Visual FoxPro
Category:
CodeMine
Miscellaneous
Thread ID:
00838656
Message ID:
00839570
Views:
22
Hi Thomas,

Look at thread #788677.

Alex

>What is the best way to disable controls in a Grid that is based on CodeMines grid control. At runtime, depending on a value in the parent table the Grid needs to be readonly. Setting grd.Readonly = .T. only changes the background color. All the controls in the Grid that are based on CodeMine base classes are still editable. To get around this I either use Grd.SetAll() to set the lReadOnly property for the controls, or in another instance I set the lReadonly = .T. in the ShowControl of each control in the columns.
>
>I would think there is a better way to handle this.
>
>I am also surprised that VFP is letting me change the value when the Grid is Readonly.
>
>I am using CM Version 7.1 and VFP 7 SP1.
>
>Thanks
>Tom
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform