Skip to main content

ColumnBase.HeaderToolTipTemplate Property

Gets or sets the template that defines the tooltip’s presentation. This is a dependency property.

Namespace: DevExpress.UI.Xaml.Grid

Assembly: DevExpress.UI.Xaml.Grid.v21.2.dll

NuGet Package: DevExpress.Uwp.Controls

Declaration

public DataTemplate HeaderToolTipTemplate { get; set; }

Property Value

Type Description
DataTemplate

A DataTemplate object that defines the presentation of a column header’s tooltip.

Remarks

Use the ColumnBase.HeaderToolTip property to set the tooltip’s text. Use the HeaderToolTipTemplate property to define a custom representation for an individual column’s tooltip. Use the DataControlBase.ColumnHeaderToolTipTemplate property to specify a common tooltip template for all the columns in the Grid Control. The ColumnBase.ActualHeaderToolTipTemplate property returns a column’s current tooltip template.

The following code sample shows how to add an image to a tooltip using the HeaderToolTipTemplate property:

<Grid:GridTextColumn FieldName="ProductName"> 
    <Grid:GridTextColumn.HeaderToolTipTemplate> 
        <DataTemplate> 
            <StackPanel Orientation="Horizontal"> 
                <Image Source="icon.png" Margin="0,0,5,0"></Image> 
                <TextBlock Text="{Binding Path=HeaderCaption}" /> 
            </StackPanel> 
        </DataTemplate> 
    </Grid:GridTextColumn.HeaderToolTipTemplate> 
</Grid:GridTextColumn>
See Also