blazor-devexpress-dot-blazor-dot-pivottable-dot-dxpivottablefield-600906ac.md
Specifies the width of cells where the field values are displayed.
Namespace : DevExpress.Blazor.PivotTable
Assembly : DevExpress.Blazor.PivotTable.v25.2.dll
NuGet Package : DevExpress.Blazor.PivotTable
[DefaultValue(0)]
[Parameter]
public int Width { get; set; }
| Type | Default | Description |
|---|---|---|
| Int32 | 0 |
The cell width in pixels.
|
The control applies the following default widths to cells:
Use the Width property to set cell widths for fields. The Width property behavior depends on the area where the field is located:
<DxPivotTable Data="SalesData">
<Fields>
<DxPivotTableField Field="@nameof(Sales.SaleInfo.Region)"
Area="@PivotTableArea.Row"
AreaIndex="0"
Width="100"/>
<DxPivotTableField Field="@nameof(Sales.SaleInfo.Amount)"
SortOrder="@PivotTableSortOrder.Ascending"
Area="@PivotTableArea.Data"
SummaryType="@PivotTableSummaryType.Sum"
Width="80"/>
@*...*@
</Fields>
</DxPivotTable>
See Also