Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Row in grid readonly?
Message
De
05/07/2000 09:47:48
 
 
À
05/07/2000 09:24:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00388285
Message ID:
00388293
Vues:
10
>I'm just wondering if there is a way to make a specific row in a grid ReadOnly based on a logical field of the same RecordSource.
>
>Ex.
>Column1 Column2 Column3
>Data11 Data21 .F.
>Data12 Data22 .T. << this row is ReadOnly
>
>Ramil 7/5

One way is to use the grid's AfterRowColChange event with some code like:
IF MyTable.MyFlag
    THIS.SETALL( "ReadOnly", .F., "Column" )
ELSE
    THIS.SETALL( "ReadOnly", .T., "Column" )
ENDIF
You will probably need to experiment with it to get all the appropriate behavior, but this should get you going in the right direction.

Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform