Skip to main content

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

PivotGridControl.CellStyle Property

Gets or sets the style applied to data cells displayed within a Pivot Grid.

Namespace: DevExpress.Xpf.PivotGrid

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

NuGet Package: DevExpress.Wpf.PivotGrid

#Declaration

public Style CellStyle { get; set; }

#Property Value

Type Description
Style

A System.Windows.Style object that represents the style applied to data cells.

#Remarks

See the example below.

<dxpg:PivotGridControl.CellStyle>
    <Style TargetType="{x:Type dxpg:CellElement}" >
        <Style.Triggers>
            <DataTrigger Binding="{DXBinding 'RowIndex==PivotGrid.FocusedCell.Y or ColumnIndex==PivotGrid.FocusedCell.X'}" Value="True">
                <Setter Property="Background" Value="{Binding Background, Converter={StaticResource colorOverlayConverter}, ConverterParameter=#50505050}" />
            </DataTrigger>
        </Style.Triggers>
    </Style>
</dxpg:PivotGridControl.CellStyle>
See Also