GridColumnSummaryItemCollection.Add(SummaryItemType, String, String, IFormatProvider) Method
Adds a new summary item to the current summary collection and initializes its summary type, field name, display format and format provider.
Namespace: DevExpress.XtraGrid
Assembly: DevExpress.XtraGrid.v24.2.dll
NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation
#Declaration
[EditorBrowsable(EditorBrowsableState.Never)]
public virtual GridColumnSummaryItem Add(
SummaryItemType summaryType,
string fieldName,
string displayFormat,
IFormatProvider formatProvider
)
#Parameters
Name | Type | Description |
---|---|---|
summary |
Summary |
A Summary |
field |
String | A string value that is the field’s name used to calculate the summary. This parameter is used to initialize the Grid |
display |
String | A string value that is the display format of the summary. The parameter is used to initialize the Grid |
format |
IFormat |
A IFormat |
#Returns
Type | Description |
---|---|
Grid |
A Grid |