>What I need to do is, increase the colunm sizes to match that of the table column sizes.
>
>If I have a table Test.dbf can I write something similar to this:
>
>if used("Test")
> select Test
> use
>endif
>use Test
>
>thisform.datagrid.recordsource="test"
>
>n=test.column.count
>
>for i=1 to n
> thisform.datagrid.column1.with=test.column(i).width
>endfor
Ria,
Datagrid horizontal scroll bar would disappear when all visible columns fit to width.
Just out of curiosity doe this code really work with datagrid ?
PS: Do you have any good reason not to use VFP native grid.
Cetin