You might be able to do something like set CheckBox.Alignment = Right, and give it a caption of a few spaces, which should push the check box towards the middle of the column.
>Mike,
>
>That looks better but it still did not help my alignment problem. The visible=.f. control is left aligned. Both checkboxes are from the same class.
>
>Thanks
>
>>Hi James,
>>
>>Leave them both enabled, for the one you want to seem disabled, set it's visible property .F. I realize it sounds goofy but in a grid column a checkbox with visible = .F. is visible.
>>
>>>Hi all
>>>
>>>VFP8 sp1
>>>
>>>I have a requirement to have a check box in a grid that conditionally disables the check box. The only way I can see to do this is to use DynamicCurrentControl and have one checkbox disabled and the other enabled. This is working fine except the disabled check box will not center in the column. Any ideas how to fix this?
>>>
>>>Thanks
Regards. Al
"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov
Neither a despot, nor a doormat, be
Every app wants to be a database app when it grows up