GridGroupSummaryItemCollection.Add(SummaryItemType, String, GridColumn, String, IFormatProvider) Method
Creates a new group summary item with the specified settings and adds it to the end of the collection.
Namespace: DevExpress.XtraGrid
Assembly: DevExpress.XtraGrid.v24.2.dll
NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation
#Declaration
[EditorBrowsable(EditorBrowsableState.Never)]
public virtual GridGroupSummaryItem Add(
SummaryItemType summaryType,
string fieldName,
GridColumn showInColumn,
string displayFormat,
IFormatProvider formatProvider
)
#Parameters
Name | Type | Description |
---|---|---|
summary |
Summary |
A Summary |
field |
String | A String value specifying the name of a dataset field whose values are used for summary calculation. This value initializes the new item’s Grid |
show |
Grid |
A Grid |
display |
String | A String value specifying the summary value’s format. This value initializes the new item’s Grid |
format |
IFormat |
An IFormat |
#Returns
Type | Description |
---|---|
Grid |
A Grid |