Width.Autosize

Description

(Grid presentation style only) Whether a column adjusts its width according to the data it contains.

Applies to

Column controls in the Grid presentation style

Syntax

PowerBuilder dot notation:

dw_control.Object.controlname.Width.Autosize

Describe and Modify argument:

"controlname.Width.Autosize { = ' value ' }"

Parameter

Description

controlname

The name of the column for which you want to get or set the Autosize setting.

value

How the width of the column adjusts according to the data it contains. Values are:

  • 0 – None

  • 1 – Widest shown

  • 2 – Widest on page­

  • 3 – Widest retrieved from database

Usage


In the painter

Select a column control, then set the value in the Properties view, Position tab, Autosize Width option.