Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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

C#
[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.

Razor
<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