Try putting this code in your grid's AfterRowColumnChange event:
Code:
this.readonly=lPerm
In the above code, lPerm is the name of the logical field in the table. If the field is .T., the grid will be read only. If .F., it will be changeable.
The WHEN clause of the column hold the key to work it around. Put in all other columns.Text1.When event..
IF myCheck = .t.
RETURN .T. or .F.
ELSE
RETURN .F. or .T.
ENDIF
This code will not allow the focus to be put on those cells.SO only the column with the check mark in that row will get the focus, since that shall not have the when event code.
Be it READ ONLY or no focus.. the purpose is achieved. ramani :-9
(Subramanian.G),FoxAcc, ramani_g@yahoo.com
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.