Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grids
Message
 
To
21/12/2000 05:06:31
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Re: Grids
Miscellaneous
Thread ID:
00455797
Message ID:
00455942
Views:
29
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform