バージョン

GroupBySummaryDisplayMode プロパティ

各グループ化レコード内で集計結果がどのように表示されるのかを指定します。Default は SummaryCells に解決されます。
シンタックス
'宣言
 
Public Property GroupBySummaryDisplayMode As GroupBySummaryDisplayMode
public GroupBySummaryDisplayMode GroupBySummaryDisplayMode {get; set;}
解説

GroupBySummaryDisplayMode プロパティは各グループ化レコード内に集計結果がどのように表示されるのかを制御します。使用できるオプションについては、GroupBySummaryDisplayMode 列挙型のヘルプを参照してください。

使用例
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>
参照