'Declaration Public Property GroupBySummaryDisplayMode As GroupBySummaryDisplayMode
public GroupBySummaryDisplayMode GroupBySummaryDisplayMode {get; set;}
GroupBySummaryDisplayMode property controls how summary calculation results are displayed inside each group-by record. See help for GroupBySummaryDisplayMode enum for available options.
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 ); }
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