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
500
How do I add ToolTips for individual cells?
posted

I'd like to add a tooltip for  particular field I've defined in my XamDataGrid's FieldLayout.Fields collection.  The tooltip should be different for each cell in that column ... depending on what the data is.  Preferably I'd like to databind the tooltip value to a property in the underlying data object, but it could be done in code as well.

This is what I currently tried:

<

 

 

igDP:Field Name="ActionCode" Label="Action Code" Width="150" ToolTip="{Binding Path=ActionCodeName}"/>

Of course, that just places a tooltip on the column header (and actually no text gets displayed, but that's probably a binding problem).

Parents
  • 27093
    posted

    Hello,

     

    I have been looking into this for you and in order to have a different ToolTip for each cell, I suggest you set the CellValuePreenter’s ToolTip through a style. You can use the FieldSettings’ CellValuePresenterStyle property to specify this for a specified field. If you would describe in more details how you get the data for the different ToolTips I might be able to further elaborate my answer.

     

    Please let me know if you require any further assistance on the matter.                               

Reply Children