Back to Devexpress

TableView.GroupColumnSummaryItemTemplate Property

wpf-devexpress-dot-xpf-dot-grid-dot-tableview-545afa49.md

latest2.6 KB
Original Source

TableView.GroupColumnSummaryItemTemplate Property

Gets or sets the template that defines the presentation of group summary items aligned by columns. This is a dependency property.

Namespace : DevExpress.Xpf.Grid

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

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public DataTemplate GroupColumnSummaryItemTemplate { get; set; }
vb
Public Property GroupColumnSummaryItemTemplate As DataTemplate

Property Value

TypeDescription
DataTemplate

A DataTemplate object that defines the presentation of group summary items aligned by columns.

|

Remarks

The TableView.GroupSummaryDisplayMode property specifies the position of group summaries within a group row. If this property is set to GroupSummaryDisplayMode.AlignByColumns, group summaries are displayed under the corresponding columns.

Example

The following code sample demonstrates how to use the GroupColumnSummaryItemTemplate property:

xaml
<dxg:GridControl>
    <dxg:GridControl.GroupSummary>
        <dxg:GridSummaryItem SummaryType="Sum" FieldName="UnitPrice" />
    </dxg:GridControl.GroupSummary>
    <dxg:GridControl.View>
        <dxg:TableView GroupSummaryDisplayMode="AlignByColumns">
            <dxg:TableView.GroupColumnSummaryItemTemplate>
                <DataTemplate>
                    <StackPanel Orientation="Horizontal">
                        <TextBlock Text="{Binding Value}" Background="LightBlue" Margin="130,0,0,0"/>
                    </StackPanel>
                </DataTemplate>
            </dxg:TableView.GroupColumnSummaryItemTemplate>
        </dxg:TableView>
    </dxg:GridControl.View>
</dxg:GridControl>

See Also

Appearance Customization

TableView Class

TableView Members

DevExpress.Xpf.Grid Namespace