Skip to main content
Tag

PivotGridField.FieldName Property

Gets or sets the name of the data source field assigned to the current PivotGridField object. This is a dependency property.

Namespace: DevExpress.Xpf.PivotGrid

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

#Declaration

[XtraSerializableProperty]
[XtraSerializablePropertyId(2)]
public string FieldName { get; set; }

#Property Value

Type Description
String

A String value which is the name of the data source field.

#Remarks

Use the FieldName property to change the data source field assigned to the current PivotGridField object. To specify the text displayed within the field header, use the PivotGridField.Caption property.

In OLAP binding mode, the FieldName property must specify the full name of the bound measure or dimension.

For dimensions, the full name is composed of a dimension name, followed by a hierarchy name, followed by the name of a level(s). All names should be wrapped within square brackets and separated from one another using the dot symbol. Example: "[Customer].[Customer Geography].[Country]".

For measures, the full name is composed of the "[Measures]." string followed by the measure name. Example: "[Measures].[Sales Amount]".

See Also