Tooltip for WPF Datagrid Row

Mar 22, 2009 at 1:52 PM


Im Having requirement of providing tooltip for every datagrid cell.

can any1 post me style for datagrid row for tooltip

Im Using following style for tooltip

 <Style x:Key="defaultCellStyle" TargetType="{x:Type dg:DataGridCell}">
            <Setter Property="ContentTemplate">
                              <TextBlock Text="hisahifhidsf" ToolTip="{Binding}"  Background="Aqua"/>


With Regards,
Mar 22, 2009 at 7:39 PM
Hi ,

Could able to provide tooltip but 
like this <style targettype="dg:datagridcell">
<setter property="tooltip" value="Binding empid">

Here EMpId is given as Binding Path value,Now i want to provide tooltip for each datagrid cell depending upon contents in corresponding cell(wherever mouse over on particular cell)

I.e If user places cursor on cell @ (1,1) value @ (1,1) should be displayed has tooltip

With regards,