>>>have several check boxes in grids. none have a caption. the header is wide to give a meaningful caption, but the checkbox can only be autocenter left or right. what can I do?
>>>
>
>>You may create container class and center checkbox there. Then add container object to the grid.column.
>
>i created the container class that has a checkbox in it. now when i drop it onto a grid, do I need to change the left, top, and controlsource? my grid is bound to a table and my checkboxes before did not have to explicitly state the controlsource since the column was bound. seems like my checkbox in the container class no longer knows its' controlsource.
>
>brenda
This way you may use 'static' checkbox, i.e. you have two containers, one with checkbox.value=1 and another with 0. Next step you use Dynamiccurrentcontrol setting:
Grid.Mycolumn.DynamicCurrentControl="IIF(myrecordsource.myfield=.T.,'container1','container2')"
Edward Pikman
Independent Consultant