Back to Devexpress

PivotGridField.Width Property

wpf-devexpress-dot-xpf-dot-pivotgrid-dot-pivotgridfield-d9dfb5bb.md

latest3.3 KB
Original Source

PivotGridField.Width Property

Gets or sets the width of columns that correspond to the current field. This is a dependency property.

Namespace : DevExpress.Xpf.PivotGrid

Assembly : DevExpress.Xpf.PivotGrid.v25.2.dll

NuGet Package : DevExpress.Wpf.PivotGrid

Declaration

csharp
public double Width { get; set; }
vb
Public Property Width As Double

Property Value

TypeDescription
Double

A Double value, specifying the width of columns that correspond to the current field.

|

Remarks

The Width property 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. PivotGrid ignores the Width property of row fields when the RowTotalsLocation property is Tree. In this case, use the RowTreeWidth property to specify the width of the row area.
  • For data fields, the Width property effect depends on where data field headers are displayed (defined by the PivotGridControl.DataFieldArea 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.

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.

To denote a default value of the Width property, use the PivotGridField.DefaultWidth field.

Use the PivotGridField.Height property to specify the height of rows that correspond to the current field.

See Also

MinWidth

Height

BestFit

PivotGridField Class

PivotGridField Members

DevExpress.Xpf.PivotGrid Namespace