Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Row in grid readonly?
Message
From
05/07/2000 09:47:48
 
 
To
05/07/2000 09:24:54
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00388285
Message ID:
00388293
Views:
9
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform