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

DxPivotTable.CssClass Property

Assigns a CSS class to the Pivot Table.

Namespace: DevExpress.Blazor.PivotTable

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

NuGet Package: DevExpress.Blazor.PivotTable

#Declaration

C#
[DefaultValue(null)]
[Parameter]
public string CssClass { get; set; }

#Property Value

Type Default Description
String null

CSS class names delimited by spaces.

#Remarks

The CssClass property allows you to customize the Pivot Table’s appearance. The assigned CSS class is added to the Pivot Table’s root element. Refer to the following topic for more information: CSS Classes.

razor
@rendermode InteractiveServer

<style>
    .my-style {
        height: 700px
    }
</style>

<DxPivotTable Data="SalesData"
              CssClass="my-style">
    <Fields>
        @*...*@
    </Fields>
</DxPivotTable>

#Implements

See Also