Gets or sets the fieldname of the column whose values are to be used to calculate the
StatFunction.
Property Value
The
Column.FieldName of the column whose values are to be used to calculate the
StatFunction. By default,
DefaultStatFieldName.
The following example demonstrates how to calculate the average value of the "Quantity" column and display the result in the "UnitPrice" SummaryCell.
SummaryCell unitPrice = ( SummaryCell )sumRow.Cells[ "UnitPrice" ];
unitPrice.StatFieldName = "Quantity";
unitPrice.StatFunction = StatFunction.Average;
unitPrice.TitleFormat = "The average ordered quantity is: ";
Dim unitPrice As SummaryCell = CType( sumRow.Cells( "UnitPrice" ), SummaryCell )
unitPrice.StatFieldName = "Quantity"
unitPrice.StatFunction = StatFunction.Average
unitPrice.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