Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid column change Enabled
Message
De
12/10/1999 21:00:15
Alan Law
Apocalypse Enterprises Inc.
Victoria, Colombie Britannique, Canada
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Grid column change Enabled
Divers
Thread ID:
00275694
Message ID:
00275694
Vues:
45
I am a grid newby, so please be gentle. I have a grid where I want to Enable/Disable a combo-values column (COLUMN3) based on the contents of a checkbox column (COLUMN2).

I have this code:

*AfterRowColChange
if evaluate(this.Column2.ControlSource)=1 && column2 is checked
this.Column3.Enabled=.F.
else
this.Column3.Enabled=.T.
endif
this.Column3.Refresh

Problem is: Column3 gets Enabled set ok, but it is too late - the control is already active. (If I move off the column, then back, it is tickety boo.)

I used AfterRowColChange because I need the row to be coordinated with the underlying View.

So, Catch-22. Is there some way to make this fire after the control is sitting on the proper controlsource value, but Enabled/Disabled is still settable ? If not, how does one do this seemingly straight-forward task ?

Thanks for any advice. I have precious little hair left.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform