PivotGridControl.CustomCellValue Event
Allows you to replace cell values with custom ones.
Namespace: DevExpress.Xpf.PivotGrid
Assembly: DevExpress.Xpf.PivotGrid.v14.2.dll
#Declaration
#Event Data
The CustomCellValue event's handler receives an argument of the PivotCellValueEventArgs type. The following properties provide information specific to this event:
Property | Description |
---|---|
Column |
Gets the custom total to which the processed cell's column corresponds.
Inherited from Pivot |
Column |
Gets the innermost column field which corresponds to the processed cell.
Inherited from Pivot |
Column |
This member supports the internal infrastructure and is not intended to be used directly from your code.
Inherited from Pivot |
Column |
Gets the visual index of the column that contains the processed cell.
Inherited from Pivot |
Column |
Gets the type of the cell's column header.
Inherited from Pivot |
Data |
Gets the data field which identifies the column where the processed cell resides.
Inherited from Pivot |
Display |
Gets the display text of the cell currently being processed.
Inherited from Pivot |
Focused |
Gets whether the processed cell is the focused cell.
Inherited from Pivot |
Handled |
Gets or sets a value that indicates the present state of the event handling for a routed event as it travels the route.
Inherited from Routed |
Original |
Gets the original reporting source as determined by pure hit testing, before any possible Source adjustment by a parent class.
Inherited from Routed |
Routed |
Gets or sets the Routed |
Row |
Gets the custom total to which the processed cell's row corresponds.
Inherited from Pivot |
Row |
Gets the innermost row field which corresponds to the processed cell.
Inherited from Pivot |
Row |
This member supports the internal infrastructure and is not intended to be used directly from your code.
Inherited from Pivot |
Row |
Gets the visual index of the row that contains the processed cell.
Inherited from Pivot |
Row |
Gets the type of the cell's row header.
Inherited from Pivot |
Selected |
Gets whether the processed cell is selected.
Inherited from Pivot |
Source |
Gets or sets a reference to the object that raised the event.
Inherited from Routed |
Summary |
Gets the type of summary calculated in the current cell.
Inherited from Pivot |
Summary |
Gets the summary value currently being processed.
Inherited from Pivot |
Value | Gets or sets the processed cell's value. |
#Remarks
The CustomCellValue event fires for each cell. You can handle it to replace the calculated cell values with custom ones. Use the event parameter's PivotCellBaseEventArgs.SummaryValue property to obtain the summary value calculated for the cell. The custom cell value should be provided to the PivotCellValueEventArgs.Value property. To specify whether to run the default event handler, use the event parameter's Handled property. If it is set to false, the custom cell value is ignored.
Use the event parameter's PivotCellBaseEventArgs.ColumnField, PivotCellBaseEventArgs.DataField and PivotCellBaseEventArgs.RowField properties to obtain the column, data and row fields that correspond to the processed cell, respectively. The PivotCellBaseEventArgs.ColumnIndex and PivotCellBaseEventArgs.RowIndex properties are used to obtain the visual indices of the column and row that contain the cell.
You can also provide custom display text by handling the PivotGridControl.CustomCellDisplayText event, which is raised after the CustomCellValue event.
NOTE
Values provided via the Custom