Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

BandBase.BandGeneratorStyle Property

Gets or sets a style that contains settings common to all child bands within the current band that were 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

public Style BandGeneratorStyle { get; set; }

#Property Value

Type Description
Style

A Style object that is the style that contains settings common to all child bands within the current band that were generated using different templates.

#Remarks

The GridControl and its bands can be bound to a collection of objects containing band settings, described in a Model or ViewModel. A band generates its child 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 specify settings common to all child bands within the current band, generated using different templates, create a style and assign it to the BandGeneratorStyle property.

<UserControl.Resources>
    <Style x:Key="BandStyle" TargetType="dxg:GridControlBand">
        <Setter Property="AllowResizing" Value="False"/>
    </Style>
</UserControl.Resources>

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

See Also