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

BandBase.ColumnGeneratorTemplate Property

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

Namespace: DevExpress.Xpf.Grid

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

Declaration

public DataTemplate ColumnGeneratorTemplate { get; set; }

Property Value

Type Description
DataTemplate

The column template.

Remarks

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

To choose the required template based on the column’s type, use the template selector assigned to the BandBase.ColumnGeneratorTemplateSelector property. If all grid columns can be described using a single template, you have no need to create a column template selector. Instead, assign this template to the grid’s ColumnGeneratorTemplate property.

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

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