PivotSummaryValue.Tag Property

Gets or sets custom data for the current PivotSummaryValue object.

Namespace: DevExpress.Data.PivotGrid

Assembly: DevExpress.PivotGrid.v20.2.Core.dll

Declaration

public object Tag { get; set; }
Public Property Tag As Object

Property Value

Type Description
Object

An object that represents custom data for the current PivotSummaryValue object.

Remarks

For example, you can use the Tag property as follows. Suppose you handle the PivotGridControl.CustomSummary and PivotGridControl.CustomCellDisplayText events for a PivotGrid control. The CustomCellDisplayText event fires after the CustomSummary event. So, you can assign custom data to the Tag property when handling the CustomSummary event, and then access this value when handling the CustomCellDisplayText event.

NOTE

Specific Data Fields can be bound to the same field in the data source. When processing cells corresponding to these data fields, the same PivotSummaryValue object will be passed to the PivotGrid control events. The Tag property's value will be the same for different data fields. However, the PivotSummaryValue.CustomValue values will be different for different data fields.

See Also