Studio for Silverlight

C1DataGrid Column ToolTip

  •  patrick.muellner-1p said 11 months, 2 weeks ago:

    Hi.

    I have a DataGridTextColumn with a normal binding.

    Now I should make a ToolTip only for this Column.

    But the ToolTip is also a binding!

    I´ve something with CellPresenter but but Binding it doesn´t works.

     <c1:DataGridTextColumn Width="*" Text="Gliederung" Binding="{Binding Gliederung.Bezeichnung}">
    
                      <c1:DataGridTextColumn.CellStyle>
                         <Style TargetType="c1:DataGridCellPresenter">
                            <Setter Property="ToolTipService.ToolTip" Value="{Binding ToolTipText}">
                             
                            
    
                            </Setter>
    
                         </Style>
                      </c1:DataGridTextColumn.CellStyle>
                      
                      
                      
    
    
                   </c1:DataGridTextColumn>
    
    
  •  shajichettai said 11 months, 2 weeks ago:

    Use DataGridTemplateColumn






  •  C1_UpkarS64p said 11 months, 2 weeks ago:

    Try below cell style:-

    <c1:DataGridTextColumn.CellStyle>
       <Style TargetType="c1:DataGridCellPresenter">
           <Setter Property="ToolTipService.ToolTip"  Value="{Binding RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=c1:DataGridRowPresenter}, Path=Row.DataItem.ToolTipText}"/>
              </Style> 
     </c1:DataGridTextColumn.CellStyle> 

    Regards

    Answer
Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.