Class GridSummaryRow
Represents a class that defines the summary information of summary row.
Implements
Inherited Members
Namespace: Syncfusion.WinForms.DataGrid
Assembly: Syncfusion.SfDataGrid.WinForms.dll
Syntax
public class GridSummaryRow : ISummaryRow
Constructors
GridSummaryRow()
Initializes a new instance of the GridSummaryRow class.
Declaration
public GridSummaryRow()
Properties
CalculationUnit
Gets or sets the value that specifies the mode for calculating summaries which decides whether to calculate summary for all records or selected records.
Declaration
public SummaryCalculationUnit CalculationUnit { get; set; }
Property Value
Type |
---|
SummaryCalculationUnit |
Name
Gets or sets a name of the summary row.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string that specifies the name of the summary row. The default value is |
ShowSummaryInRow
Gets or sets a value indicating whether the summary value should be displayed in row or based on column.
Declaration
public bool ShowSummaryInRow { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | true if the summary value displayed in a row based on Title property; otherwise, summary value is displayed in column based on MappingName. The default value is true. |
Remarks
SummaryColumns
Gets or sets a collection of ISummaryColumn.
Declaration
public ObservableCollection<ISummaryColumn> SummaryColumns { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ObservableCollection<ISummaryColumn> | The collection of ISummaryColumn. |
Title
Gets or sets a string that has the format and summary column information to be displayed in row.
Declaration
public string Title { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string that specifies format and summary column name to parse and format summary display text for summary row.The
default value is |
Remarks
The summary row value is displayed based on Title when the ShowSummaryInRow is true and Title maps the summary value based on Name property.
TitleColumnCount
Gets or sets the value that maintains the column span of the summary title.
Declaration
public int TitleColumnCount { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The value that specifies the column span of the summary title. The default value is 0. |
Remarks
This will be only considered when ShowSummaryInRow is disabled. If TitleColumnCount value is greater than 0, then the Title will be rendered along with summary values as defined through SummaryColumns.