Version

SummaryResultChanged Event

Occurs when a summary result is calculated or recalculated.
Syntax
'Declaration
 
Public Event SummaryResultChanged As EventHandler(Of SummaryResultChangedEventArgs)
public event EventHandler<SummaryResultChangedEventArgs> SummaryResultChanged
Event Data

The event handler receives an argument of type SummaryResultChangedEventArgs containing data related to this event. The following SummaryResultChangedEventArgs properties provide information specific to this event.

PropertyDescription
Handled (Inherited from System.Windows.RoutedEventArgs)Gets or sets a value that indicates the present state of the event handling for a routed event as it travels the route.
OriginalSource (Inherited from System.Windows.RoutedEventArgs)Gets the original reporting source as determined by pure hit testing, before any possible System.Windows.RoutedEventArgs.Source adjustment by a parent class.
RoutedEvent (Inherited from System.Windows.RoutedEventArgs)Gets or sets the System.Windows.RoutedEventArgs.RoutedEvent associated with this System.Windows.RoutedEventArgs instance.
Source (Inherited from System.Windows.RoutedEventArgs)Gets or sets a reference to the object that raised the event.
SummaryResult Returns the SummaryResult instance that was recalculated.
Remarks
SummaryResultChanged is raised when the a summary result is calculated or recalculated.
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