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
Title:
Disable controls in a Grid
Miscellaneous
Thread ID:
00838656
Message ID:
00838656
Views:
71
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
Next
Reply
Map
View

Click here to load this message in the networking platform