Do the following:
-In the CHECKBOX columns use two checkbox controls bound to the same controlsource
-Make the 1st one ENABLED=.t. and name it something like "chkEnabled"
-Make the 2nd one ENABLED=.f. and name it something like "chkDisabled"
-At the column level set the DYNAMICCURRENTCONTROL to something like:
iif(combobox="N", "ckhDisabled", "chkEnabled") (You need to change "combobox" to the field you have bound to the combobox.
-Make sure and place some refresh code in the VALID event of the COMBOBOX ie:
This.parent.parent.column3.refresh()
This.parent.parent.column4.refresh()
>I have a grid with the following
>
>TEXTBOX COMBOBOX CHECKBOX CHECKBOX
>
>When COMBOBOX = "N" I want the 2 Checkboxes to disable and when COMBOBOX = "Y" then Vice-versa.
>
>However, when I disable the checkboxes - it disables all the checkboxes for all the records in the Grid.
>
>Any ideas on what I'm doing wrong?
>
>Thanks
>Kev
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement