Skip to main content

ASPxPivotGrid.GetKPIImage(PivotKPIGraphic, PivotKPIType, Int32) Method

Returns an image that corresponds to the specified KPI value.

Namespace: DevExpress.Web.ASPxPivotGrid

Assembly: DevExpress.Web.ASPxPivotGrid.v22.2.dll

NuGet Package: DevExpress.Web


public ImageProperties GetKPIImage(
    PivotKPIGraphic graphic,
    PivotKPIType kpiType,
    int value


Name Type Description
graphic PivotKPIGraphic

A PivotKPIGraphic enumeration value that specifies the KPI graphic set. You shouldn’t use the ‘None’ and ‘ServerDefined’ values.

kpiType PivotKPIType

A PivotKPIType enumeration value that identifies the image set. Images can be obtained only for trend and status KPI types.

value Int32

An integer value that specifies the KPI value (-1, 0 or 1).


Type Description

An ImageProperties object that contains image settings for the specified KPI value.


Since KPI supports graphic representation for its Status and Trend values, these values can be replaced with images. OLAP supports 12 graphic sets such as shapes, smiley faces, traffic lights, etc. To get these images, use the ASPxPivotGrid.GetOLAPKPIServerGraphic method. Individual KPI images can be obtained via the GetKPIImage method.

See Also