'宣言 Public Property GroupBySummaryDisplayMode As GroupBySummaryDisplayMode
public GroupBySummaryDisplayMode GroupBySummaryDisplayMode {get; set;}
GroupBySummaryDisplayMode プロパティは各グループ化レコード内に集計結果がどのように表示されるのかを制御します。使用できるオプションについては、GroupBySummaryDisplayMode 列挙型のヘルプを参照してください。
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 ); }