Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dynamicreadonly like property..
Message
De
28/11/2003 05:22:45
 
 
À
28/11/2003 05:11:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00854151
Message ID:
00854152
Vues:
17
>It could be nice if the grid had a dynamicreadonly property.
>
>Is there anyway I can mimic this functionality in code. The problem is I would like some cells in a column to be readonly and some cells to be editable based on the criteria (workspec.rowstatus=1).
>
>This there anyway to do this?
>
>BR
>Tim


Tim,

I usually add another control to the column. One Control is set to ReadOnly = .T., the other ReadOnly = .F.

Then it is just a matter of using DynamicCurrentControl.

You can use the DynamicBackColor to let the user see whether the cell is editable

Another possibility would be to return FALSE (if not editable) from the when() event of the currentcontrol of the column
Gregory
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform