Skip to main content
A newer version of this page is available. .

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.v18.2.Core.dll

Declaration

public string ShowInColumn { get; set; }

Property Value

Type Description
String

A String value that specifies the column’s field name.

Remarks

There are two summary types:

  • Total Summary

    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.

  • Group Summary

    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.

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