>Dear all,
>I have a grid in my form and i want to disable some rows based on a field content.
>I write this:
>
>thisform.grid1.SetAll('ReadOnly',IIF(CanEdit=1, .F., .T.),'Column')
>
>But this not work properly.
>I do this with :
>
>thisform.grid1.SetAll('Enabled',IIF(CanEdit=1, .F., .T.),'Column')
>
>But this destroyed my grid.
Simply do the first in the AfterRowColChange in the grid. E.g.
this.Column1.ReadOnly = not myTable.CanEdit (assuming that this is table's value)
If it's not broken, fix it until it is.
My Blog