Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can you center check box in grid column?
Message
From
31/03/1999 15:17:05
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00203985
Message ID:
00204016
Views:
18
>>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform