Syncfusion.SfGrid.WPF
Example 


ShowSummaryInRow Property (GridSummaryRow)

Gets or sets the value that indicates whether the summary value should be displayed in row or based on column.
Syntax
'Declaration
 
Public Property ShowSummaryInRow As Boolean
'Usage
 
Dim instance As GridSummaryRow
Dim value As Boolean
 
instance.ShowSummaryInRow = value
 
value = instance.ShowSummaryInRow
public bool ShowSummaryInRow {get; set;}

Property Value

true if the summary value displayed in a row based on Title property; otherwise, summary value is displayed in column based on GridSummaryColumn.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.
Example
this.dataGrid.TableSummaryRows.Add(new GridSummaryRow()
 {
    Name="Total Products",
    ShowSummaryInRow = true,
    Title = "Total Products Count: {ProductCount}",
    SummaryColumns = new ObservableCollection<ISummaryColumn>()
    {
        new GridSummaryColumn()
        {
            Name="ProductCount",
            MappingName="ProductName",
            SummaryType=SummaryType.CountAggregate,
            Format="{Count:d}"
        },
    }
});
AssemblyVersion

Syncfusion.SfGrid.WPF: 17.1460.0.47

See Also