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

TableView.GroupColumnSummaryContentStyle Property

Gets or sets the style applied to group summary items aligned by columns. This is a dependency property.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v24.2.dll

NuGet Package: DevExpress.Wpf.Grid.Core

#Declaration

public Style GroupColumnSummaryContentStyle { get; set; }

#Property Value

Type Description
Style

A Style object that is the style applied to group summary items aligned by columns.

#Remarks

The GroupColumnSummaryContentStyle property is in effect if the TableView.GroupSummaryDisplayMode property is set to GroupSummaryDisplayMode.AlignByColumns. Otherwise, use the GridViewBase.GroupSummaryItemTemplate property.

The GridViewBase.GroupColumnSummaryElementStyle property allows you to specify appearance of group summary text elements.

#Example

The following code sample uses the GroupColumnSummaryContentStyle property to customize group summaries:

TableView GroupColumnSummaryContentStyle

<dxg:GridControl>
    <dxg:GridControl.GroupSummary>
        <dxg:GridSummaryItem SummaryType="Sum" FieldName="UnitPrice" />
    </dxg:GridControl.GroupSummary>
    <dxg:GridControl.View>
        <dxg:TableView GroupSummaryDisplayMode="AlignByColumns">
            <dxg:TableView.GroupColumnSummaryContentStyle>
                <Style TargetType="dxg:GroupColumnSummaryControl">
                    <Setter Property="TextBlock.FontStyle" Value="Italic"/>
                </Style>
            </dxg:TableView.GroupColumnSummaryContentStyle>
        </dxg:TableView>
    </dxg:GridControl.View>
</dxg:GridControl>
See Also