Back to Devexpress

DataViewBase.TotalSummaryItemTemplate Property

wpf-devexpress-dot-xpf-dot-grid-dot-dataviewbase-3adc09e3.md

latest2.2 KB
Original Source

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.v25.2.Core.dll

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

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

Property Value

TypeDescription
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.

xaml
<dxg:GridControl>
  <dxg:GridControl.View>
      <dxg:TableView TotalSummaryPosition="Bottom">
          <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.

See Also

DataViewBase Class

DataViewBase Members

DevExpress.Xpf.Grid Namespace