>>>>thisform.grid1.SetAll('ReadOnly',IIF(CanEdit=1, .F., .T.),'Column') >>>>>>>>But this not work properly.
>>>>thisform.grid1.SetAll('Enabled',IIF(CanEdit=1, .F., .T.),'Column') >>>>>>>>But this destroyed my grid.
>for each loColumn in this.Columns FOXOBJECT > loColumn.ReadOnly = not myTable.CanEdit >nextthank you very much. it works. but what is the difference between your code and
thisform.grid1.SetAll('ReadOnly',IIF(CanEdit=1, .F., .T.),'Column')