Back to Devexpress

FormatConditionBase.ColumnName Property

wpf-devexpress-dot-xpf-dot-pivotgrid-dot-formatconditionbase-f9949ee6.md

latest3.3 KB
Original Source

FormatConditionBase.ColumnName Property

Gets or sets a name of the column field to which, on intersection with a row field, a format is applied.

Namespace : DevExpress.Xpf.PivotGrid

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

NuGet Package : DevExpress.Wpf.PivotGrid

Declaration

csharp
public string ColumnName { get; set; }
vb
Public Property ColumnName As String

Property Value

TypeDescription
String

A System.String object that is a column field name.

|

Remarks

Use the field’s PivotGridField.Name property value to refer to a field. To set the row field name, use the FormatConditionBase.RowName property.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ColumnName property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-pivot-grid-apply-format-conditions-to-data-cells/CS/WpfPivotGridConditionalFormatting/MainWindow.xaml#L28

xml
MeasureName="fieldExtendedPrice"
                             RowName="fieldSalesPerson" ColumnName="fieldYear" PredefinedFormatName="Arrows3ColoredIconSet"/>
<dxpg:TopBottomRuleFormatCondition ApplyToSpecificLevel="true"

wpf-pivot-grid-apply-format-conditions-to-data-cells/CS/WpfPivotGridConditionalFormatting/MainWindow.xaml.cs#L25

csharp
// Specifies a column field.
formatRulesDataBar.ColumnName = "fieldQuarter";

wpf-pivot-grid-apply-format-conditions-to-data-cells/VB/WpfPivotGridConditionalFormatting/MainWindow.xaml.vb#L27

vb
' Specifies a column field.
formatRulesDataBar.ColumnName = "fieldQuarter"

See Also

FormatConditionBase Class

FormatConditionBase Members

DevExpress.Xpf.PivotGrid Namespace