Skip to main content

PivotGridControl.FieldGeneratorTemplate Property

Gets or sets a template that describes pivot grid fields. This is a dependency property.

Namespace: DevExpress.Xpf.PivotGrid

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

NuGet Package: DevExpress.Wpf.PivotGrid

Declaration

public DataTemplate FieldGeneratorTemplate { get; set; }

Property Value

Type Description
DataTemplate

A DataTemplate object that is a Pivot Grid field template.

Remarks

The DevExpress WPF PivotGridControl supports field binding. The Pivot Grid can be bound to a collection of objects containing field settings, described in a Model or ViewModel. The PivotGridControl generates fields based on field templates. Using a single template, you can create an unlimited number of fields in an unlimited number of Pivot Grid controls.

To choose the required template, use the Template Selector assigned to the PivotGridControl.FieldGeneratorTemplateSelector property. If all pivot grid fields can be described using a single template, you have no need to create a field template selector. Instead, assign this template to the Pivot Grid’s FieldGeneratorTemplate property.

To learn more, see Binding to a Collection of Fields.

See Also