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