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


public string ShowInColumn { get; set; }

Property Value

Type Description

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


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.

See Also