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.v21.1.dll
NuGet Package: DevExpress.Wpf.Grid.Core
Declaration
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:
<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>
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GroupColumnSummaryContentStyle 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.