DataControlBase.ColumnGeneratorStyle Property
Gets or sets a style that contains settings common to all columns generated using different templates. This is a dependency property.
Namespace: DevExpress.Xpf.Grid
Assembly: DevExpress.Xpf.Grid.v24.2.Core.dll
NuGet Package: DevExpress.Wpf.Grid.Core
Declaration
Property Value
Type | Description |
---|---|
Style | A Style object that is the style that contains settings common to all columns generated using different templates. |
Remarks
The GridControl 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. Create multiple templates, one template for each column type. Using a single template, you can create an unlimited number of columns in an unlimited number of grid controls.
To specify settings common to all columns generated using different templates, create a style and assign it to the ColumnGeneratorStyle property.
<UserControl.Resources>
<Style x:Key="ColumnStyle" TargetType="dxg:GridColumn">
<Setter Property="FilterPopupMode" Value="CheckedList"/>
<Setter Property="FieldName" Value="{Binding FieldName}"/>
</Style>
</UserControl.Resources>
To learn more, see Binding to a Collection of Columns.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ColumnGeneratorStyle 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.