SummaryItemBase.ShowInColumn Property
Gets or sets the field name of a column where the footer/group summary is displayed. This is a dependency property.
Namespace: DevExpress.Xpf.Grid
Assembly: DevExpress.Xpf.Grid.v25.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
You can use two summary types:
- Total Summary
- A total summary allows you to calculate an aggregate function by all values in a column and display the result in the column’s footer cell. Use the
ShowInColumnproperty if you need to display the calculated result in the footer cell of a different column. - Group Summary
A group summary allows you to calculate an aggregate function by all values of a column within an individual group. If the GroupSummaryDisplayMode is set to
AlignByColumns, theShowInColumnproperty allows you to move calculated group summaries to a different column position.Group summary values are displayed within all group rows at all nesting levels. If you do not wish to 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 you to cancel the calculation. As a result, the summary value is not 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.