How to show tooltip with with more than one data bound in DataGrid's row?
I have a DataGrid in WPF application showing one column. I want to have a
tootip that shows all data from each row. It's something like this (this
works):
<DataGridTextColumn Header="ScreenName" Binding="{Binding Name}" >
<DataGridTextColumn.CellStyle>
<Style TargetType="DataGridCell">
<Setter Property="ToolTip" Value="{Binding Name}" />
</Style>
</DataGridTextColumn.CellStyle>
</DataGridTextColumn>
If I change the Binding to another property (like Value="{Binding Age}")
also works, shows the age in tooltip. In my Setter, how do I bind all the
data to show in a single tooltip? Name, Age, City, Birthday, MoreData...
No comments:
Post a Comment