Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid column change Enabled
Message
From
12/10/1999 21:00:15
Alan Law
Apocalypse Enterprises Inc.
Victoria, British Columbia, Canada
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Grid column change Enabled
Miscellaneous
Thread ID:
00275694
Message ID:
00275694
Views:
46
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.
Next
Reply
Map
View

Click here to load this message in the networking platform