Skip to main content

BandBase.BandGeneratorTemplate Property

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

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v24.1.Core.dll

NuGet Package: DevExpress.Wpf.Grid.Core

Declaration

public DataTemplate BandGeneratorTemplate { get; set; }

Property Value

Type Description
DataTemplate

The band template.

Remarks

The grid and its bands can be bound to a collection of objects containing band settings, described in a Model or ViewModel. The GridControl generates bands based on band templates. Using a single template, you can create an unlimited number of bands in an unlimited number of grid controls.

To choose the required template based on the band settings, use the template selector assigned to the BandBase.BandGeneratorTemplateSelector property. If all grid bands can be described using a single template, you have no need to create a band template selector. Instead, assign this template to the grid’s BandGeneratorTemplate property.

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

See Also