Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can you center check box in grid column?
Message
De
31/03/1999 15:17:05
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00203985
Message ID:
00204016
Vues:
17
>>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform