I would like to customize my DataGrid to show a tooltip within the selected row, please see the mockup images below for a better idea of what I want to achieve.
As it is at the moment - Shows a single selected row:
How I would like - Shows the same row selected, now with tooltip:
I don't really have any idea how to achieve this, so I'm open to any suggestions at all.
I use the DataGrid.RowStyle
to set the tooltip.
My bound objects have a ToolTipText
property which contains the content of the ToolTip
.
<DataGrid.RowStyle>
<Style TargetType="DataGridRow">
<Setter Property="ToolTip">
<Setter.Value>
<TextBlock Text="{Binding ToolTipText}" />
</Setter.Value>
</Setter>
</Style>
</DataGrid.RowStyle>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With