Skip to main content

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.v22.1.dll


public Style CellStyle { get; set; }

Property Value

Type Description

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


See the example below.

    <Style TargetType="{x:Type dxpg:CellElement}" >
            <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}" />
See Also