DataControlBase.ColumnHeaderToolTipTemplate Property
Gets or sets the template that defines the presentation of a column header’s tooltip. This is a dependency property.
Namespace: DevExpress.WinUI.Grid
Assembly: DevExpress.WinUI.Grid.v21.2.dll
Declaration
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 ColumnBase.HeaderToolTipTemplate property to define a custom column header tooltip. Use the ColumnHeaderToolTipTemplate property to specify a tooltip template for all columns in the GridControl.
<dxg:GridControl ItemsSource="{x:Bind ViewModel.Source}" AutoGenerateColumns="False" NavigationStyle="Cell">
<dxg:GridControl.ColumnHeaderToolTipTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<Image Source="ProductName.svg" Stretch="UniformToFill" Height="16" Width="16"/>
<TextBlock Text="{Binding Header}" Margin="3,0,0,0"/>
</StackPanel>
</DataTemplate>
</dxg:GridControl.ColumnHeaderToolTipTemplate>
<dxg:GridControl.Columns>
<dxg:GridTextColumn FieldName="ProductName" Header="Product Name"/>
<!-- ... -->
</dxg:GridControl.Columns>
</dxg:GridControl>
See Also