PivotGridSettings.CustomCellStyle Property

Allows the appearances of cells to be dynamically customized.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v19.2.dll

Declaration

public PivotCustomCellStyleEventHandler CustomCellStyle { get; set; }
Public Property CustomCellStyle As PivotCustomCellStyleEventHandler

Property Value

Type Description
PivotCustomCellStyleEventHandler

A PivotCustomCellStyleEventHandler delegate method allowing you to implement custom processing.

Remarks

The CustomCellStyle event fires for each pivot grid cell and allows you to customize the appearance of cells dynamically (depending on their contents, position, values of other cells, etc). Use the event's parameters to identify the processed cell.

PivotGrid allows obtaining a field's value both for hidden and visible fields. MVCxPivotGrid does not aggregate data by hidden fields. You need to get a value from the underlying data source records corresponding to a processed cell. Use the PivotCellEventArgsBase<TField, TData, TCustomTotal>.CreateDrillDownDataSource method to obtain hidden field's values. To get a visible field's value, use the PivotCellEventArgsBase<TField, TData, TCustomTotal>.GetCellValue method.

See Also