AutoSizeableColumn

Automatically resize the specified column in the grid when the form is resized.

Description

This property is applicable only if the grid widget is attached to the right and left borders (Attach to Window Border) and the window is resizable (Resizable).

Only one column in a grid widget can be defined as auto-resizable. When the window is resized, this column is resized so that the grid widget adjusts to the new size without no unused column space.

Applies to

egrid (Grid)

Setting the Property

This is a static property and cannot be set in ProcScript. To set this property, add it as a user-defined property in the Properties Inspector, or set it for all Grid widgets in the usys.ini file. For example:

[widgets]
...
Egrid=egrid(font=editfont;labelfont=editfont;autosizeablecolumn=2)

Related Topics