Skip to content

piMaximumWidth - cCJGridColumn

Specifies the maximum column width

Type: Property
Access: Read/Write
Data Type: Integer
Parameters: None

Syntax

Property Integer piMaximumWidth
Access Type Syntax
Read Access: Get piMaximumWidth to IntegerVariable
Write Access: Set piMaximumWidth to IntegerVariable/Value

Description

Specifies the maximum column width in pixels. The maximum is applied to the automatic column resizing that occurs when the grid's pbAutoColumnSizing property is set to True and the grid's width is increased.

If the grid's pbAutoColumnSizing is set to False, then this property has no effect.

The value of piMaximumWidth of the column does not affect the column's maximum width when the column is dragged wider by the user or if the width is changed programmatically by setting the column's piWidth property. To prevent the user from changing the column width by dragging, set the column's pbResizable property to False.

If the column's piWidth property is set to a value greater than piMaximumWidth then the maximum width is not applied when the grid is resized.

Set piMaximumWidth to 0 to turn off the maximmum width. This is also the default value.