Skip to main content

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

public string ShowInColumn { get; set; }

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 ShowInColumn property 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, the ShowInColumn property 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.

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.

See Also