Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
780
Add Tooltip for text column?
posted

I want to add a Tooltip for the text in a column.  If I specify the column name explicitly, this works:

<igDataGrid:TemplateColumn Key="Description"  >
 <igDataGrid:TemplateColumn.ItemTemplate>
     <DataTemplate>
         <TextBlock Height="14" Text="{Binding Description}" ToolTipService.ToolTip="{Binding Description}" >
         </TextBlock>
     </DataTemplate>
 </igDataGrid:TemplateColumn.ItemTemplate>
</igDataGrid:TemplateColumn>

But, I'd like to define the template once as a resource and use it for any column - is there any way to avoid the hard-coded binding ("Description" in this case)?  Possibly by referencing the Key of the ItemTemplate somehow?

Or is there a way to do this with the TextColumn, or a Style?  I've tried several ways unsuccessfully. 

Thanks,
Keith

Parents Reply Children
No Data