Agnes,
If you think about it, there're no columns displayed when gris.Visible = .F.. The LeftColumn property value is undetermined at that point and I would expect it to be 0 or Null.
>Hi All,
>
>this is just for your information.
>
>I found a problem with grids in VFP 8.0 SP1 (I do not know if it is in VFP 8.0, but it is not in versions below 8.0)
>
>I have a grid with on column.
>
>somewhere this grid is refernced like
>
>.myGrid.COLUMNS(.myGrid.LeftColumn)
>
>
>If I switch myGrid.Visible to .F. this line fails.
>I found, that the value of LeftColumn is 2!
>
>If I switch Visible back to .t., LeftColumn goes back to 1.
>
>On higher numbers of columns it works the same way, for !Visible is LeftColumn = ColumnCount+1.
>
>
>
--sb--