Version

Value Property (SummaryResult)

Returns the result of the summary calculation.
Syntax
'Declaration
 
Public ReadOnly Property Value As Object
public object Value {get;}
Remarks

Value returns the result of the summary calculation. The type of the returned value varies depending upon the type of summary calculation being performed. Typically for numeric calculations, a numeric type like decimal is returned. For Maximum and Minimum summary calculations, the returned object is of field's data type.

Value essentially returns whatever object the underlying summary calculator returned from the underlying EndCalculation implemenetation.

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