Class DataGridSummaryRow
Represents a class that defines the summary information of summary row.
Namespace: Syncfusion.Maui.DataGrid
Assembly: Syncfusion.Maui.DataGrid.dll
Syntax
public class DataGridSummaryRow : BindableObject, ISummaryRow, IDisposable
Constructors
DataGridSummaryRow()
Declaration
public DataGridSummaryRow()
Fields
TitleColumnCountProperty
Identifies the TitleColumnCount bindable property.
Declaration
public static readonly BindableProperty TitleColumnCountProperty
Field Value
Type |
---|
Microsoft.Maui.Controls.BindableProperty |
Properties
Name
Gets or sets the name of the summary row.
Declaration
public string Name { get; set; }
Property Value
Type |
---|
System.String |
ShowSummaryInRow
Gets or sets a value indicating whether to show summary in an entire row.
Declaration
public bool ShowSummaryInRow { get; set; }
Property Value
Type |
---|
System.Boolean |
SummaryColumns
Gets or sets the collection of summary columns for a DataGridSummaryRow.
Declaration
public ObservableCollection<ISummaryColumn> SummaryColumns { get; set; }
Property Value
Type |
---|
System.Collections.ObjectModel.ObservableCollection<ISummaryColumn> |
Examples
<syncfusion:DataGridTableSummaryRow.SummaryColumns>
<syncfusion:DataGridSummaryColumn Name = "TotalSalary"
Format="{}{Sum:c}"
MappingName="Salary"
SummaryType="DoubleAggregate" />
<syncfusion:DataGridSummaryColumn Name = "ProductCount"
Format="{}{Count}"
MappingName="Salary"
SummaryType="CountAggregate" />
</syncfusion:DataGridTableSummaryRow.SummaryColumns>
DataGridTableSummaryRow summaryRow = new DataGridTableSummaryRow();
summaryRow.Title = "Total Salary:{TotalSalary} for {ProductCount} members";
summaryRow.ShowSummaryInRow = true;
summaryRow.SummaryColumns.Add(new DataGridSummaryColumn()
{
Name = "TotalSalary",
MappingName = "Salary",
Format = "{Sum:c}",
SummaryType = SummaryType.DoubleAggregate
});
Title
Gets or sets the title to be displayed in the summary row.
Declaration
public string Title { get; set; }
Property Value
Type |
---|
System.String |
Remarks
When ShowSummaryInRow is true, the title of the summary row will be displayed. The summary row defines the Title which makes use of the Name to display its value.
TitleColumnCount
Gets or sets the number of columns the title should span in the summary row.
Declaration
public int TitleColumnCount { get; set; }
Property Value
Type |
---|
System.Int32 |
Remarks
When ShowSummaryInRow is false, the title will be displayed in the first few columns based on this value. The default value is 1, meaning the title appears only in the first column.
Methods
Dispose()
Releases the resources used by the component.
Declaration
public void Dispose()
Dispose(Boolean)
to do
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |