>Hi,
> How could I center my checkbox in a grid?
> I am developing security module at this moment. I key in all of my module in a table and let user to assign user's right through a grid. I place checkbox in each relevant column for tick or untick.
>
>Module Access Read Write
>Member Registration .T. .F.
>
>I can just easily let user to grant or not grant the right of each module using the table structure above. I faced a problem when I don't allow user to assign the right of particular item (e.g. write field is empty that meant not available in member registration for example). How do I disable the relevant checkbox if the value is empty?
>
>Thank you
John,
Grids accept container as a control. You could design a container with code to center in its init. Also you could easily disable it in container ie: gotfocus.
PS: Checkboxes also has a third value (2) which is available programmatically. You could just set it to 2 and when event to Value # 2 :) Or in container you could dynamically add-subtract checkboxes.
Cetin