>hi david,
>
>my table has description, author and date. when user is equal the author, i want the row to be editable.
>
>initially, i want grid to be readonly. i should have a command button that should set all rows equal to author to be editable.
>
>i tried your suggestion, on the when() of each text in my grid, i do
>
>
>if author=nuser
> this.readonly = .f.
>endif
>
>
>but when i run the form, i see all rows as editable even if author is not equal to user.
>
>i am sure that user is equal the author but it does not set it as editable.
>
>any help?
LPARAMETERS nColIndex
this.ReadOnly = !(eval(this.recordsource+'.Author') = thisform.nUser)
LPARAMETERS nColIndex
this.SetAll('Enabled',eval(this.recordsource+'.Author') = thisform.nUser)
this.columns(nColIndex).Text1.SetFocus()
Cetin
Cetin