Subject Re: [IBO] TIB_Grid Col displaywidth
Author Geoff Worboys
> When columns in a TIB_Grid have their widths changed by a mouse
> drag the TIB_Grid values GridFields[I].DisplayWidth are not
> changed.

> This seems to be an error.

No this is not an error, GridFields surfaces the underlying
TIB_Column property - so changes would impact all grids etc.

Check out TIB_Grid.GridLinks. Some time ago Claudio added the
ability to define grid specific column widths using that
property. I am not sure if it will change with user drag of
column widths but its worth checking.

> When a TIB_Grid has computed columns the name of the computed
> column is reported as an empty string in GridFields[I].SQLName
> but is correct in GridFields[I].FieldName. Is this an error at
> SQLName?

No. Computed columns do not have an SQL name. SQLName is a
misnomer - carried over from the API. SQLName is actually the
name of the column in the underlying entity, and computed fields
dont have such a column (unless the computed value is defined as
part of the entity itself).

Geoff Worboys
Telesis Computing