GridGroupSummaryItemCollection.Add(SummaryItemType, String) Method

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

Namespace: DevExpress.XtraGrid

Assembly: DevExpress.XtraGrid.v20.1.dll

Declaration

public virtual GridGroupSummaryItem Add(
    SummaryItemType summaryType,
    string fieldName
)
Public Overridable Function Add(
    summaryType As SummaryItemType,
    fieldName As String
) As GridGroupSummaryItem

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.

fieldName String

A string value that is the field's name used to calculate the summary. This parameter is used to initialize the GridSummaryItem.FieldName property.

Returns

Type Description
GridGroupSummaryItem

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

Remarks

This method sets the following properties as follows:

See Also