I tried the following:
<tk:DataGridTextColumn
Header="Item"
Binding="{Binding Item.Title}"
ToolTipService.ToolTip="{Binding Item.Description}" />
And I don't see any tool tip.
Any ideas? Is it even implemented?
I tried the following:
<tk:DataGridTextColumn
Header="Item"
Binding="{Binding Item.Title}"
ToolTipService.ToolTip="{Binding Item.Description}" />
And I don't see any tool tip.
Any ideas? Is it even implemented?
The DataGridTextColumn is not visible. You have to set tooltips on the header or the content.
To set a ToolTip on the header, change the Header to a TextBlock:
To set a ToolTip on the column contents, set it in the Style:
You may also want to set
EditingElementStyle
.Additionally, if your column is a DataGridTemplateColumn instead of a DataGridTextColumn, you can do it like this:
This works for me:
Set ToolTipService.ToolTip Property in Header style:
Here it is how I used it when I had image in DataGridCheckBoxColumn instead of text. XAML:
C#:
pls, check if the code below would work for you, it should be displaying tooltips for columns headers and cells, cell's tooltip should be bent the Description field of the data object:
solution found here: 5 Random Gotchas with the WPF DataGrid