menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GridSummaryRow - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class GridSummaryRow

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

    Inheritance
    System.Object
    GridSummaryRow
    GridTableSummaryRow
    Implements
    ISummaryRow
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    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 string.Empty.

    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

    The Title and Name should have the same name if you want to display the summary value in row basis.

    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 string.Empty.

    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.

    Implements

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