Fabio,
>With column's Sparse and Bound to false,
>
>BUG/ISSUE #1: Autofit use Column.Controlsource
>Workaround: disable Autofit
You don't give any expectation of how you think the columns should Autofit.
&& set all columns to max lenght
- a miscomment because it's not setting any lengththis.SetAll("ControlSource",FIELD(thisform.grid1.ColumnCount),"Column")
When you set the ControlSource for every column to F7 why would you expect VFP to Autofit the columns to anything but the length of F7? Which makes the first 6 columns have white space on the right.
If you allow each Column.ControlSource to be F1 through F7 respectively.
PROCEDURE grid1.Init
this.SetAll("Sparse",.F.,"Column")
this.SetAll("Bound",.F.,"Column")
ENDPROC
then the AutoFit does set each column width based on the data content of the column.