Overview | Methods | This Package | All Packages
OverviewMethodsThis PackageAll Packages
Column.setWidth
Sets the width of the column.
Syntax
public void setWidth( int width )
Parameters
width
The new width (in pixels) for the column.
Exceptions
WFCInvalidArgumentException thrown if width is less than DataGrid.MIN_COLUMN_WIDTH.
Remarks
If the allowSizing property is set to true, the column's width can be resized at run time, either programmatically or by the user. The width property is then automatically set to the new width. Note that if the allowSizing property is false, the width cannot be changed.
Use the parent DataGrid control's defaultColumnWidth property to set the default width for all columns in the grid.
See Also getWidth