Skip to main content
A newer version of this page is available. .

DataViewBase.TotalSummaryItemTemplate Property

Gets or sets the template that defines the presentation of total summary items. This is a dependency property.

Namespace: DevExpress.Xpf.Grid

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

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Grid.Core, DevExpress.Wpf.Grid.Core

Declaration

public DataTemplate TotalSummaryItemTemplate { get; set; }

Property Value

Type Description
DataTemplate

A DataTemplate object defines the total summary items’ style.

Remarks

The GridColumnData class specifies the TotalSummaryItemTemplate template’s binding source.

The following code snippet uses the TotalSummaryItemTemplate property to customize the TotalSummaryItemTemplate’s appearance.

<dxg:GridControl>
  <dxg:GridControl.View>
      <dxg:TableView ShowTotalSummary="True" UseLightweightTemplates="None">
          <dxg:TableView.TotalSummaryItemTemplate>
              <DataTemplate>
                  <StackPanel Background="Bisque">
                      <TextBlock Text="{Binding Column.TotalSummaryText}" Background="LightBlue"/>
                  </StackPanel>
              </DataTemplate>
          </dxg:TableView.TotalSummaryItemTemplate>
      </dxg:TableView>
  </dxg:GridControl.View>
</dxg:GridControl> 

See the Appearance Customization topic for more information.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the TotalSummaryItemTemplate 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.

See Also