The requested page is not available for the requested platform. You are viewing the content for Default platform.

CustomSummaryEventArgs.FieldValue Property

Gets the processed field value.

Namespace: DevExpress.Mobile.DataGrid

Assembly: DevExpress.Mobile.Grid.v18.2.dll

Declaration

public object FieldValue { get; }
Public ReadOnly Property FieldValue As Object

Property Value

Type Description
Object

An object specifying the processed field value.

Remarks

Important

This documentation topic describes legacy technology. We no longer develop new functionality for the GridControl and suggest that you use the new DataGridView control instead.

Default summary calculation algorithms process values that belong to a field specified by a summary item. When calculating a summary value manually, this column's values are passed to the event GridControl.CalculateCustomSummary handler via the FieldValue property. Use this property to access the processed value immediately and update the CustomSummaryEventArgs.TotalValue property value accordingly.

Note that sometimes, you may need to include several fields in your summary calculations. In this case, you will need to use the CustomSummaryEventArgs.Row parameter to identify the row being processed and access its values within the desired fields, or call the CustomSummaryEventArgs.GetValue method with the specified field name.

Examples

This example shows how to use the GridControl.CalculateCustomSummary event to create a custom summary that counts the total number of data rows whose cells in the Shipped column (SwitchColumn) contain false.

<dxGrid:GridControl.TotalSummaries>
    <dxGrid:GridColumnSummary FieldName="Total" Type="Sum" 
                            DisplayFormat= "Total: {0:C0}"/>
    <dxGrid:GridColumnSummary FieldName="Shipped" Type="Custom" 
                            DisplayFormat= "Not Shipped: {0}"/>
</dxGrid:GridControl.TotalSummaries>
See Also