Skip to main content

TcxPivotGridField.Width Property

Specifies the field header’s width in pixels.

Declaration

property Width: Integer read; write; default 0;

Property Value

Type Default
Integer 0

Remarks

Use this property to specify the width of the field’s header. If this property is assigned a value of 0, the field’s width is equal to the value of the cxPivotGridDefaultFieldWidth constant. Note that the widths of data fields‘ headers are limited by the integral width of the visible row fields and are also dependent upon the widths of the data fields that have been explicitly specified via the Width property.

Use the ActualWidth property to determine the actual field’s width, as it appears onscreen. The minimum width of a field can be specified via the MinWidth property.

To adjust the width of the field’s header according to the contents of the corresponding data cells, call the field’s ApplyBestFit method.

The default value of the Width property is 0.

See Also