Skip to main content

GridColumnSummaryItemCollection.Add(SummaryItemType) Method

Adds a new summary item to the current summary collection and initializes its summary type.

Namespace: DevExpress.XtraGrid

Assembly: DevExpress.XtraGrid.v24.2.dll

Declaration

[EditorBrowsable(EditorBrowsableState.Never)]
public virtual GridColumnSummaryItem Add(
    SummaryItemType summaryType
)

Parameters

Name Type Description
summaryType SummaryItemType

A SummaryItemType value that is the new item’s summary type. This parameter is used to initialize the GridSummaryItem.SummaryType property.

Returns

Type Description
GridColumnSummaryItem

A GridColumnSummaryItem object that is a new summary item added to the collection.

Remarks

This method sets the following properties as follows:

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Add(SummaryItemType) 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