Select Max(_screen.Textwidth(Transform(Mytable.field1))) as column1, ; Max(_screen.Textwidth(Transform(Mytable.field2))) as column2 ; from tableX into ...etcThe idea is that this will give the maximum width in pixels required for a grid column, the reson for using transform is that the format (and even data type) of the underlying table does not matter
>alltrim(str(-8.81,20,2)) && for two decimals >