Gets or sets the statistical function used by the SummaryCell to calculate its value.
Property Value
A
StatFunction value representing the statistical function used by the cell to calculate its value. By default,
DefaultStatFunction.
The following example demonstrates how to calculate the average value of the "Quantity" column
and display the result in the "UnitPrice" SummaryCell.
Dim unitCell As SummaryCell = CType( sumRow.Cells( "UnitPrice" ), SummaryCell )
unitCell.StatFieldName = "Quantity"
unitCell.StatFunction = StatFunction.Average
unitCell.TitleFormat = "The average ordered quantity is: "
SummaryCell unitCell = ( SummaryCell )sumRow.Cells[ "UnitPrice" ];
unitCell.StatFieldName = "Quantity";
unitCell.StatFunction = StatFunction.Average;
unitCell.TitleFormat = "The average ordered quantity is: ";
Target Platforms: Windows 7, 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