Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Modify a value in a grid with Allowactivecell = .F
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01563528
Message ID:
01564586
Vues:
63
I don't see why you need 2 checkboxes

>sorry Sergey for my poor english....
>
>https://www.dropbox.com/s/f6hm02iyssgumxz/2013-01-29_20-31-30.jpg
>
>here i have a grid.
>in column2 i have a checbox with a booleen controlsource ( .T. or .F. )
>
>when the value is .T. a green picture is visible ( chk_cross0 )
>when the Value is .F. a cross picture is visbile ( chk_cross1 )
>
>do you understand ?
>
>bernhart
>
>
>>I have no idea what you are doing or want to do
>>
>>>
>>>
>>>PROCEDURE grid1.Click
>>>		LOCAL lnRelCol, lnRelRow, lnWhere
>>>		STORE 0 TO lnWhere, lnRelRow, lnRelCol
>>>		This.GridHitTest(Thisform.nGridX, Thisform.nGridY, @lnWhere, @lnRelRow, @lnRelCol)
>>>		IF lnWhere = 3			&& Cell
>>>			IF lnRelCol = 3		&& column 3
>>>				This.Columns(lnRelCol).check1.Value = NOT This.Columns(lnRelCol).check1.Value
>>>			ENDIF
>>>		ENDIF
>>>	ENDPROC
>>>
>>>
>>>
>>>if you have 2 controls in your column 3 ?
>>>
>>>DynamicCurrentControl = [IIF( lv_AgendaPhar.lselect = .T. , 'chk_cross0' , 'chk_cross1')]
>>>
>>>what change in your code ?
>>>
>>>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform