BandBase.ColumnGeneratorTemplateSelector Property
Gets or sets the data template selector which chooses a template based on the column’s type. This is a dependency property.
Namespace: DevExpress.Xpf.Grid
Assembly: DevExpress.Xpf.Grid.v24.1.Core.dll
NuGet Package: DevExpress.Wpf.Grid.Core
Declaration
Property Value
Type | Description |
---|---|
DataTemplateSelector | The column template selector. |
Remarks
The grid’s band can be bound to a collection of objects containing column settings, described in a Model or ViewModel. A band generates its child columns based on column templates. Using a single template, you can create an unlimited number of columns in an unlimited number of grid controls and bands.
To choose the required column template based on the column’s type, use the data template selector assigned to the 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 DataControlBase.ColumnGeneratorTemplate property.
To learn more, see Binding to a Collection of Bands.