Subject Re: [IBO] Grid and column widths
Author Markus Ostenried
On Sat, Aug 13, 2011 at 02:58, squidsrus85 <squidsrus85@...> wrote:
> Hi All,
>
> Is there a way to edit the column width in TB_Grid?
>
> There seems to be no Columns Editor and no "Columns[x].Width" property to change width either at design time or run time.
>
> Dave

You need to set FieldsDisplayWidth property of your dataset. You can
do that in the dataset's property editor on the tab Data (you need to
prepare or open the dataset first): then adjust the column widths in
the grid.
When you click the Apply or Ok button this be saved in the
FieldsDisplayWidth property of the dataset (look at that property in
the object inspector).

For this you can set defaults in IB_Connection.FieldsDisplayWidth.

And you can also overwrite this in the IB_Grid.GridLinks property.
Or set it at runtime with
FieldByName('name').DisplayWidth := 200;

HTH,
Markus