Version

SummaryResult Class

SummaryResult object holds result of a summary calculation.
Syntax
'Declaration
 
Public Class SummaryResult 
   Inherits Infragistics.PropertyChangeNotifier
public class SummaryResult : Infragistics.PropertyChangeNotifier 
Remarks

SummaryResult object holds result of a summary calculation. RecordCollection exposes RecordCollectionBase.SummaryResults property that returns a collection of all the summary calculation results associated with that RecordCollection.

To specify summaries to calculate, use the FieldLayout's FieldLayout.SummaryDefinitions property.

Example
XAML snippet code declares a XamDataGrid and hooks into its SummaryResultChanged event. The handler is defined in C#/VB code. It prints out the new value of the summary whenever it's calculated or re-calculated.

For an overview of how to handle events in Visual Basic or Visual C#, see Event Handlers in Visual Basic and Visual C#. For specific information and code examples illustrating how to consume events in your application, see Consuming Events in the .NET Framework Developer's Guide.

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

 Private Sub Dp_SummaryResultChanged(ByVal sender As Object, ByVal e As Infragistics.Windows.DataPresenter.Events.SummaryResultChangedEventArgs)
        Debug.WriteLine("New value of summary is " & e.SummaryResult.Value)
 End Sub
using Infragistics.Windows;
using Infragistics.Windows.Editors;
using Infragistics.Windows.DataPresenter;

		public void dp_SummaryResultChanged( object sender, Infragistics.Windows.DataPresenter.Events.SummaryResultChangedEventArgs e )
		{
			Debug.WriteLine( "New value of summary is " + e.SummaryResult.Value );
		}

<igDP:XamDataGrid x:Name="_dp" SummaryResultChanged="dp_SummaryResultChanged" />
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