FormatConditionBase Class
Serves as a base for classes that represent format conditions.
Namespace: DevExpress.Xpf.PivotGrid
Assembly: DevExpress.Xpf.PivotGrid.v24.2.dll
NuGet Package: DevExpress.Wpf.PivotGrid
Declaration
Remarks
Conditional formatting allows you to change the appearance of data cells based on specific conditions. To specify a data field (measure) to which value conditional formatting is applied, use the FormatConditionBase.MeasureName property. Use the field’s PivotGridField.Name property value to refer to the field.
To apply conditional formatting, create a new instance of the required format condition type, specify its parameters and add it to the PivotGridControl.FormatConditions collection.
You can apply the rule to all data cells or specified row and column intersection.
- To apply conditional formatting to the specified row and column intersection, set the condition’s FormatConditionBase.ApplyToSpecificLevel property to true and specify the column and row using the FormatConditionBase.ColumnName and FormatConditionBase.RowName properties, respectively.
- To apply format condition to all data cells, make sure that the condition’s FormatConditionBase.ApplyToSpecificLevel is set to false. In this case, the FormatConditionBase.ColumnName and FormatConditionBase.RowName properties are ignored.