Skip to main content

GridSummaryItem.SetSummary(SummaryItemType, String) Method

Specifies the type and display format of the summary item.

Namespace: DevExpress.XtraGrid

Assembly: DevExpress.XtraGrid.v24.2.dll

Declaration

public void SetSummary(
    SummaryItemType summaryType,
    string displayFormat
)

Parameters

Name Type Description
summaryType SummaryItemType

A SummaryItemType enumeration value specifying the summary type. This value is assigned to the GridSummaryItem.SummaryType property.

displayFormat String

A string specifying the summary value’s display format. This value is assigned to the GridSummaryItem.DisplayFormat property.

Remarks

Please refer to the Summaries topic for detailed information on summaries.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the SetSummary(SummaryItemType, String) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also