Skip to main content

ColumnBase.HeaderToolTip Property

Gets or sets the column header tooltip. This is a dependency property.

Namespace: DevExpress.UI.Xaml.Grid

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

NuGet Package: DevExpress.Uwp.Controls

#Declaration

[XtraSerializableProperty]
public object HeaderToolTip { get; set; }

#Property Value

Type Description
Object

An object that represents the column header tooltip.

#Remarks

The tooltip is shown when the cursor hovers over the column header.

Specify the ColumnBase.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 following code sample shows how to add an image to a tooltip using the ColumnBase.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