Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Conditional Hiding Grid Checkbox
Message
 
À
16/01/2012 06:11:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01533003
Message ID:
01533006
Vues:
31
This message has been marked as a message which has helped to the initial question of the thread.
>Hi All,
>
>I have a grid displayed on a form which reflects the contents of a cursor. One column in the grid contains a checkbox connected to a logical field in the cursor which the user can use to select multiple records for further processing. Is there a way to hide or disable the checkbox if another field in that same record is blank, for example?

Try:
*** Form Init event
thisform.Grid1.ColumnWhereYouShowTestedField.DynamicFontBold = "thisform.SetFont()"

*** Add a new method in form named SetFont
*** In it:
thisform.ColumnWithCheckBoxName.Check1.Enabled = NOT EMPTY(TheField)
RETURN thisform.Grid1.ColumnWhereYouShowTestedField.FontBold
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform