Column.setAllowSizing

Overview | Methods | This Package | All Packages

Column.setAllowSizing

Sets a boolean value indicating whether the column can be resized at run time.

Syntax

public void setAllowSizing( boolean allow )

Parameters

allow

Set to true to allow the column width to be changed; otherwise, set to false. The default value of the allowSizing property is true.

Remarks

When the allowSizing property is set to true, the mouse pointer turns into a double-headed arrow when positioned over the divider between column headers, and the user can resize the column by dragging.

Note   If the parent DataGrid control's columnHeaders property is set to false, the column headers are not displayed and the user cannot resize columns.

To programmatically resize a column, call setWidth. Note that if the allowSizing property is false, setting the width has no effect.

See Also   getAllowSizing