Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grids
Message
 
À
21/12/2000 05:06:31
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Re: Grids
Divers
Thread ID:
00455797
Message ID:
00455942
Vues:
30
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
Fil
Voir

Click here to load this message in the networking platform