Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disabling grid cell
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00267849
Message ID:
00268025
Views:
21
>This was my first solution. The problem was, I'm also setting DisableBackColor when a cell is disabled for visible feedback and this colors the whole column.

You can drop another textbox with enabled property = .F. on the desired column then interchange the two textbox based on your condition. Make it sure that the columns are sparse .f.

>
>>You can do it in the AFTERROWCOLCHANGE event of the grid.
>>

>>DO CASE
>>CASE record = 1 && sample condition only
>> This.Column3.Enabled = .F.
>> This.Column5.Enabled = .T.
>>CASE record = 2
>> This.Column3.Enabled = .T.
>> This.Column5.Enabled = .F.
>>OTHERWISE
>> This.Column3.Enabled = .T.
>> This.column5.Enabled = .T.
>>ENDCASE
>>

JESS S. BANAGA
Project Leader - SDD division
...shifting from VFP to C#.Net

CHARISMA simply means: "Be more concerned about making others feel good about themselves than you are in making them feel good about you."
Previous
Reply
Map
View

Click here to load this message in the networking platform