menu

MAUI

  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DataGridSummaryRow - MAUI API Reference | Syncfusion

    Show / Hide Table of Contents

    Class DataGridSummaryRow

    Represents a class that defines the summary information of summary row.

    Inheritance
    System.Object
    DataGridSummaryRow
    DataGridTableSummaryRow
    Implements
    ISummaryRow
    System.IDisposable
    Namespace: Syncfusion.Maui.DataGrid
    Assembly: Syncfusion.Maui.DataGrid.dll
    Syntax
    public class DataGridSummaryRow : BindableObject, ISummaryRow, IDisposable

    Constructors

    DataGridSummaryRow()

    Declaration
    public DataGridSummaryRow()

    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.

    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

    Implements

    ISummaryRow
    System.IDisposable
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved