Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Disabling grid cell
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00267849
Message ID:
00268025
Vues:
20
>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."
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform