Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
Grid column change Enabled
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
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