The requested page is not available for the requested platform. You are viewing the content for Default platform.

PivotGridField.Width Property

Gets or sets the width of columns that correspond to the current field when the pivot grid is exported.

Namespace: DevExpress.Web.ASPxPivotGrid

Assembly: DevExpress.Web.ASPxPivotGrid.v19.2.dll

Declaration

[DefaultValue(100)]
public override int Width { get; set; }
<DefaultValue(100)>
Public Overrides Property Width As Integer

Property Value

Type Default Description
Int32

100

An integer value specifying the width of columns that correspond to the current field when the pivot grid is exported.

Remarks

Column width specified by the Width property is applied to corresponding columns when the pivot grid is exported. This property's effect depends on the area where the current field is located.

  • For column fields, the Width property specifies the width of columns that correspond to that field. If field value cells of the current field have nested cells, the Width property is not in effect.
  • For row fields, the Width property specifies the width of a column that contains values of the current field.
  • For data fields, the Width property effect depends on where data field headers are displayed (defined by the PivotGridOptionsDataField.Area property). If the current field is the only field in the Data Area, and data field headers are not displayed, the Width property is not in effect.

    • If data field headers are displayed as column headers, the Width property specifies the width of corresponding pivot grid columns. If data field headers have nested cells, the Width property is not in effect.
    • If data field headers are displayed as row headers, the Width property is not in effect.

If the PivotGridField.ExportBestFit property is set to true, the field width is calculated automatically, and the Width property is not in effect.

The PivotGridField.MinWidth property defines the minimum possible width for the column. If the Width property value is less than this value, it is automatically changed to PivotGridField.MinWidth.

See Also