Skip to main content
A newer version of this page is available. .
Tag

PivotGridField.HeaderImage Property

Gets or sets an image displayed within the Pivot Grid’s field header. This is a dependency property.

Namespace: DevExpress.Xpf.PivotGrid

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

NuGet Packages: DevExpress.WindowsDesktop.Wpf.PivotGrid, DevExpress.Wpf.PivotGrid

Declaration

public ImageSource HeaderImage { get; set; }

Property Value

Type Description
ImageSource

A System.Windows.Media.ImageSource object specifying the image displayed within the Pivot Grid’s field header.

Remarks

The following example shows how to set the product.ico icon to the Product Name field. This icon is located in the image folder of the current project.

<dxpg:PivotGridControl.Fields>
    <dxpg:PivotGridField Name="fieldProduct" Area="RowArea" FieldName="ProductName" 
        AreaIndex="1" HeaderImage="pack://application:,,,/image/product.ico"/>
</dxpg:PivotGridControl.Fields>

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the HeaderImage property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also