Skip to main content
All docs
V25.1
  • GridSummaryItem.SetSummary(SummaryItemType, String, IFormatProvider, SummaryMode) Method

    Specifies the type, display format, format provider, and summary mode of the summary item.

    Namespace: DevExpress.XtraGrid

    Assembly: DevExpress.XtraGrid.v25.1.dll

    NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation

    Declaration

    public void SetSummary(
        SummaryItemType summaryType,
        string displayFormat,
        IFormatProvider format,
        SummaryMode mode = SummaryMode.AllRows
    )

    Parameters

    Name Type Description
    summaryType SummaryItemType

    A summary type. This value is assigned to the SummaryType property.

    displayFormat String

    A string that specifies the display format. This value is assigned to the DisplayFormat property.

    format IFormatProvider

    The IFormatProvider object, which specifies how values should be formatted. This value is assigned to the Format property.

    Optional Parameters

    Name Type Default Description
    mode SummaryMode AllRows

    A value that specifies whether the current summary is calculated against all rows or the selection. This value is assigned to the Mode property.

    See Also