SummaryItemBase.ShowInColumn Property
Gets or sets a value that specifies a column in whose footer or group rows the summary is displayed. This is a dependency property.
Namespace: DevExpress.Xpf.Grid
Assembly: DevExpress.Xpf.Grid.v24.1.Core.dll
NuGet Package: DevExpress.Wpf.Grid.Core
Declaration
Property Value
Type | Description |
---|---|
String | A String value that specifies the column’s field name. |
Remarks
There are two summary types:
-
A total summary calculates an aggregate function by all rows and displays the result in a column’s footer cell. The ShowInColumn property allows you to specify the column in whose footer the total summary should be displayed. If this property isn’t specified, the total summary is displayed within the column that is bound to the same field in a data source as the summary item.
-
A group summary represents a value of the aggregate function calculated over all data rows within a group. Setting the ShowInColumn property for group summary items has no effect.
By default, group summary values are displayed within all group rows residing at all nesting levels. If you don’t want group summaries to be displayed within all nesting levels, handle the GridControl.CustomSummaryExists event. This event is raised before a summary value is calculated, and allows cancellation of the calculation. As a result, the summary value isn’t displayed.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the ShowInColumn property.
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.