Class GridDataSummaryRow
Provides data to hold properties for the SummaryRow.
Inheritance
Implements
Namespace: Syncfusion.Windows.Controls.Grid
Assembly: Syncfusion.Grid.Wpf.dll
Syntax
public class GridDataSummaryRow : DependencyObject, ISummaryRow, IDisposable
Remarks
<syncfusion:GridDataControl.SummaryRows>
<syncfusion:GridDataSummaryRow ShowSummaryInRow="True" Title="'Charges - {FreightSummary}$'">
<syncfusion:GridDataSummaryRow.RowStyle>
<syncfusion:GridDataStyleInfo Background="PeachPuff" />
</syncfusion:GridDataSummaryRow.RowStyle>
<syncfusion:GridDataSummaryRow.SummaryColumns>
<syncfusion:GridDataSummaryColumn Name="FreightSummary" MappingName="Freight" SummaryType="Int32Aggregate" Format="'{Sum:##.00}'" />
</syncfusion:GridDataSummaryRow.SummaryColumns>
</syncfusion:GridDataSummaryRow>
<syncfusion:GridDataSummaryRow ShowSummaryInRow="False" Title="'Total - {ShipCount} Items'">
<syncfusion:GridDataSummaryRow.RowStyle>
<syncfusion:GridDataStyleInfo Background="Yellow" />
</syncfusion:GridDataSummaryRow.RowStyle>
<syncfusion:GridDataSummaryRow.SummaryColumns>
<syncfusion:GridDataSummaryColumn Name="ShipCount" MappingName="ShipName" SummaryType="CountAggregate" Format="'{Count}'" />
</syncfusion:GridDataSummaryRow.SummaryColumns>
</syncfusion:GridDataSummaryRow>
</syncfusion:GridDataControl.SummaryRows>
Constructors
GridDataSummaryRow()
Initializes a new instance of the GridDataSummaryRow class.
Declaration
public GridDataSummaryRow()
Fields
IsVisibleProperty
DependencyProperty for IsVisible.
Declaration
public static readonly DependencyProperty IsVisibleProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
NameProperty
DependencyProperty for Name property.
Declaration
public static readonly DependencyProperty NameProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
RowStyleProperty
DependencyProperty for RowStyle property.
Declaration
public static readonly DependencyProperty RowStyleProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ShowSummaryInRowProperty
DependencyProperty for ShowSummaryInRow.
Declaration
public static readonly DependencyProperty ShowSummaryInRowProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
TitleColumnCountProperty
DependencyProperty for TitleColumnCount property.
Declaration
public static readonly DependencyProperty TitleColumnCountProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
TitleProperty
DependencyProperty for Title property.
Declaration
public static readonly DependencyProperty TitleProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Properties
Converter
Declaration
public IValueConverter Converter { get; set; }
Property Value
Type |
---|
System.Windows.Data.IValueConverter |
IsVisible
Gets or sets a value indicating whether this instance is visible.
Declaration
public bool IsVisible { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Model
Declaration
public GridDataTableModel Model { get; }
Property Value
Type |
---|
GridDataTableModel |
Name
Gets or sets the name.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String | The name. |
RowStyle
Gets or sets the row style.
Declaration
public GridDataStyleInfo RowStyle { get; set; }
Property Value
Type | Description |
---|---|
GridDataStyleInfo | The row style. |
SerializableColumns
Declaration
public ObservableCollection<GridDataSummaryColumn> SerializableColumns { get; }
Property Value
Type |
---|
System.Collections.ObjectModel.ObservableCollection<GridDataSummaryColumn> |
ShowSummaryInRow
Gets or sets a value indicating whether [show summary in row].
Declaration
public bool ShowSummaryInRow { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
SummaryColumns
Gets the summary columns.
Declaration
public ObservableCollection<ISummaryColumn> SummaryColumns { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ObservableCollection<Syncfusion.Windows.Data.ISummaryColumn> | The summary columns. |
Title
Gets or sets the Title property. Define the format that the summary row should display.
<syncfusion:GridDataSummaryRow Background="Yellow"
ShowSummaryInRow="True" Title="'{Name} Charges -
{FreightSummary}$ for {OrderCount} Items'">
<syncfusion:GridDataSummaryRow.SummaryColumns>
<syncfusion:GridDataSummaryColumn
Name="FreightSummary" MappingName="Freight"
SummaryType="Int32Aggregate" Format="'{Sum:##}'" />
<syncfusion:GridDataSummaryColumn
Name="OrderCount" MappingName="OrderDate"
SummaryType="CountAggregate" Format="'{Count}'" />
</syncfusion:GridDataSummaryRow.SummaryColumns>
</syncfusion:GridDataSummaryRow>
Declaration
public string Title { get; set; }
Property Value
Type |
---|
System.String |
TitleColumnCount
Gets or sets the title column count. Specify this property to extend the covered cell range for this particular summary row.
Declaration
public int TitleColumnCount { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The title column count. |
Methods
Dispose()
Declaration
public void Dispose()
InitializeForm(GridDataSummaryRow)
Initializes a GridDataSummaryRow from another instance.
Declaration
public void InitializeForm(GridDataSummaryRow other)
Parameters
Type | Name | Description |
---|---|---|
GridDataSummaryRow | other | The other. |