Skip to main content
All docs
V24.2

DxPivotTableField.CellFormat Property

Specifies the display format for data cells.

Namespace: DevExpress.Blazor.PivotTable

Assembly: DevExpress.Blazor.PivotTable.v24.2.dll

NuGet Package: DevExpress.Blazor.PivotTable

Declaration

[Parameter]
public string CellFormat { get; set; }

Property Value

Type Description
String

The display format.

Remarks

Refer to the following topic for more information about supported format strings: Format strings and .NET types.

The following code applies the currency format to the average summaries calculated for the Price field values.

<DxPivotTable Data="SalesData">
    <Fields>
        @*...*@
        <DxPivotTableField Field="@nameof(Sales.SaleInfo.Price)"
                           SortOrder="@PivotTableSortOrder.Ascending"
                           Area="@PivotTableArea.Data"
                           SummaryType="@PivotTableSummaryTypeAverage" 
                           CellFormat="C2"/>
    </Fields>
</DxPivotTable>

Pivot Table - Cell Format

Implements

See Also