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.v18.2.dll

Declaration

public DataTemplate HeaderToolTipTemplate { get; set; }
Public Property HeaderToolTipTemplate As DataTemplate

Property Value

Type Description
Windows.UI.Xaml.DataTemplate

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

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