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.v24.2.dll
NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation
#Declaration
[EditorBrowsable(EditorBrowsableState.Never)]
public virtual GridGroupSummaryItem Add(
SummaryItemType summaryType,
string fieldName
)
#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 |
#Returns
Type | Description |
---|---|
Grid |
A Grid |
#Remarks
This method sets the following properties as follows:
- GridSummaryItem.DisplayFormat to an empty string.
- GridSummaryItem.Format to null.
- GridGroupSummaryItem.ShowInGroupColumnFooter to null.
#Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Add(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.