Tooltip for WPF Datagrid Row

Mar 22, 2009 at 1:52 PM


Hi,

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">
                <Setter.Value>
                    <DataTemplate>
                        <StackPanel>
                              <TextBlock Text="hisahifhidsf" ToolTip="{Binding}"  Background="Aqua"/>
                        </StackPanel>
                    </DataTemplate>
                </Setter.Value>
            </Setter>

        </Style>






With Regards,
Mahender
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">
</style>

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,
Mahender