Syncfusion.SfGrid.WPF
Example 


Format Property (GridSummaryColumn)

Gets or sets the string that indicates how the summary value is formatted in display.
Syntax
'Declaration
 
<TypeConverterAttribute("Syncfusion.UI.Xaml.Grid.GridSummaryFormatConverter, Syncfusion.SfGrid.WPF, Version=17.1460.0.47, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89")>
Public Property Format As String
'Usage
 
Dim instance As GridSummaryColumn
Dim value As String
 
instance.Format = value
 
value = instance.Format
[TypeConverter("Syncfusion.UI.Xaml.Grid.GridSummaryFormatConverter, Syncfusion.SfGrid.WPF, Version=17.1460.0.47, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89")]
public string Format {get; set;}

Property Value

A string that specifies the format of summary value.The default value is string.Empty.
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