Skip to main content
A newer version of this page is available. .

PivotGridControl.GroupGeneratorTemplate Property

Gets or sets a template that describes Pivot Grid field groups. This is a dependency property.

Namespace: DevExpress.Xpf.PivotGrid

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

Declaration

public DataTemplate GroupGeneratorTemplate { get; set; }

Property Value

Type Description
DataTemplate

A DataTemplate object that is a Pivot Grid field group template.

Remarks

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

To choose the required template, use the Template Selector assigned to the PivotGridControl.GroupGeneratorTemplateSelector property. If all Pivot Grid groups can be described using a single template, you have no need to create a group template selector. Instead, assign this template to the Pivot Grid’s GroupGeneratorTemplate property.

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

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GroupGeneratorTemplate 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.

See Also