Wpf – How to Add a Tooltip To a DataGridTextColumn

datagriddatagridtextcolumntooltipwpf

I'm using WPFtoolkit DataGrid ,I have to wrap text in a DataGridTextColumn or
I have to add a ToolTip to the text column. I have searched the net but i couldn't get a proper solution. Expecting your valuable suggestions…

Best Answer

Yes, you can add tooltip text to DataGridTextColumn - just stylize it

<DataGridTextColumn Header="ScreenName" Binding="{Binding ScreenName}" >
    <DataGridTextColumn.CellStyle>
        <Style TargetType="DataGridCell">
            <Setter Property="ToolTip" Value="{Binding Name}" />
        </Style>
    </DataGridTextColumn.CellStyle>
</DataGridTextColumn>
Related Topic