Add a period after grid1
this.ReadOnly = Grid1.RecordSource.NAm=='PRIVATE'
>hi,
>
>i try to put your code at mygrid1,myfield name is nam
>i get error message(alias GridRecordSource is not found)
>
>this.ReadOnly = Grid1RecordSource.NAm=='PRIVATE'
>
>thanks