Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Disable Grid Rows
Message
 
 
À
06/10/2010 10:43:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01484155
Message ID:
01484159
Vues:
37
>I have a grid on a form. It has 2 columns, a checkbox and a text box. I would like to disable certain rows (actuallly the checkbox) from being able accessed, i.e. clicked on, so that I can show the user there are certain rows but they cannot choose them. Is there a way to do that?

1. You can use When logic of the checkbox

2. You can set column to readonly in AfterRowColChange method of the grid depending on condition (that's the method I often use).

If you want this to be applied to multiple rows, then one of the ways is to use dynamiccurrentcontrol with enabled and disabled checkboxes.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform