>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.