Back to Devexpress

BandBase.ColumnGeneratorStyle Property

wpf-devexpress-dot-xpf-dot-grid-dot-bandbase.md

latest2.6 KB
Original Source

BandBase.ColumnGeneratorStyle Property

Gets or sets a style that contains settings common to all columns within a band generated using different templates. This is a dependency property.

Namespace : DevExpress.Xpf.Grid

Assembly : DevExpress.Xpf.Grid.v25.2.Core.dll

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public Style ColumnGeneratorStyle { get; set; }
vb
Public Property ColumnGeneratorStyle As Style

Property Value

TypeDescription
Style

A Style object that is the style that contains settings common to all columns within a band 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 within a band, generated using different templates, create a style and assign it to the ColumnGeneratorStyle property.

xaml
<UserControl.Resources>
    <Style x:Key="ColumnStyle" TargetType="dxg:GridColumn">
        <Setter Property="FilterPopupMode" Value="CheckedList"/>
    </Style>
</UserControl.Resources>

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

See Also

How to: Bind the Grid to Bands Specified in ViewModel

How to: Bind the Grid to a Collection of Columns

BandBase Class

BandBase Members

DevExpress.Xpf.Grid Namespace