The version that you requested is unavailable. We've redirected you to the latest version of the help.
Version

GroupBySummaryDisplayMode Property

Specifies how to display summary results inside each group-by record. Default is resolved to SummaryCells.
Syntax
'Declaration
 
Public Property GroupBySummaryDisplayMode As GroupBySummaryDisplayMode
public GroupBySummaryDisplayMode GroupBySummaryDisplayMode {get; set;}
Remarks

GroupBySummaryDisplayMode property controls how summary calculation results are displayed inside each group-by record. See help for GroupBySummaryDisplayMode enum for available options.

Example
The following code demonstrates the usage of GroupBySummaryDisplayMode property.

Imports Infragistics.Windows
Imports Infragistics.Windows.Editors
Imports Infragistics.Windows.DataPresenter

    Private Sub Window1_Loaded(ByVal sender As Object, ByVal e As RoutedEventArgs)
        _dp.DataSource = _dataSource

        Dim fieldLayout As FieldLayout = _dp.FieldLayouts(0)

        ' GroupBySummaryDisplayMode controls how summaries are displayed inside each group-by record.
        ' It has two options - display summaries as plain text or display them cells that are aligned 
        ' with the associated field.
        fieldLayout.Settings.GroupBySummaryDisplayMode = GroupBySummaryDisplayMode.SummaryCellsAlwaysBelowDescription

        fieldLayout.FieldSettings.AllowSummaries = True

        ' Add a summary for demonstration purposes.
        fieldLayout.SummaryDefinitions.Add(SummaryCalculator.Sum, "Price")

        ' Group records by Country field. Each country group will have its own set of summary
        ' results that will be displayed inside the group record.
        Dim fsd As FieldSortDescription = New FieldSortDescription()
        fsd.FieldName = "Country"
        fsd.IsGroupBy = True
        fieldLayout.SortedFields.Add(fsd)

    End Sub
using Infragistics.Windows;
using Infragistics.Windows.Editors;
using Infragistics.Windows.DataPresenter;


		public void Window1_Loaded( object sender, RoutedEventArgs e )
		{
			_dp.DataSource = _dataSource;

			FieldLayout fieldLayout = _dp.FieldLayouts[0];

			// GroupBySummaryDisplayMode controls how summaries are displayed inside each group-by record.
			// It has two options - display summaries as plain text or display them cells that are aligned 
			// with the associated field.
			fieldLayout.Settings.GroupBySummaryDisplayMode = GroupBySummaryDisplayMode.SummaryCellsAlwaysBelowDescription;

			fieldLayout.FieldSettings.AllowSummaries = true;

			// Add a summary for demonstration purposes.
			fieldLayout.SummaryDefinitions.Add( SummaryCalculator.Sum, "Price" );

			// Group records by Country field. Each country group will have its own set of summary
			// results that will be displayed inside the group record.
			FieldSortDescription fsd = new FieldSortDescription( );
			fsd.FieldName = "Country";
			fsd.IsGroupBy = true;
			fieldLayout.SortedFields.Add( fsd );
		}
        <igDP:XamDataGrid x:Name="_dp" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" >

            
<igDP:XamDataGrid.FieldLayoutSettings>
                
<!-- 
                    GroupBySummaryDisplayMode controls how summaries are displayed inside each group-by record.
                    It has two options - display summaries as plain text or display them cells that are aligned 
                    with the associated field.
                
-->
                
<igDP:FieldLayoutSettings GroupBySummaryDisplayMode="SummaryCellsAlwaysBelowDescription" />
            
</igDP:XamDataGrid.FieldLayoutSettings>

            
<igDP:XamDataGrid.FieldSettings>
                
<igDP:FieldSettings AllowSummaries="true" />
            
</igDP:XamDataGrid.FieldSettings>

            
<igDP:XamDataGrid.FieldLayouts>
                
<igDP:FieldLayout IsDefault="true" >
                    
                    
<!-- Add a summary for demonstration purposes. -->
                    
<igDP:FieldLayout.SummaryDefinitions>
                        
<igDP:SummaryDefinition SourceFieldName="Price" Calculator="Sum" />
                    
</igDP:FieldLayout.SummaryDefinitions>

                    
<igDP:FieldLayout.SortedFields>
                        
<!-- 
                            Group records by Country field. Each country group will have its own set of summary
                            results that will be displayed inside the group record.
                        
-->
                        
<igDP:FieldSortDescription FieldName="Country" IsGroupBy="true" />
                    
</igDP:FieldLayout.SortedFields>
                    
                
</igDP:FieldLayout>
            
</igDP:XamDataGrid.FieldLayouts>

        
</igDP:XamDataGrid>
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also