Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Disabling a row in a grid
Message
 
 
À
08/04/2003 19:08:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00775289
Message ID:
00775315
Vues:
13
>I'm using VFP 6.0 and I have a grid that has 5 columns, one of my columns is the ending date.
>When the ending date becomes < DATE() I want to disable that row. When I disable my columns object i.e. text box, the complete column becomes disabled.
>
>
>Can anyone help me with this problem!
>
>tx

What do you mean by disabling? I know two solutions for this problem. One is to try to put the following code in AfterRowColChange event of the grid:
this.ColumnMyDate.readonly = MyTable.MyDateField< date()

Another way would be to have two textboxes (one enabled and another disabled) and use DynamicCurrentControl to set control appropriately.
If it's not broken, fix it until it is.


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

Click here to load this message in the networking platform