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).

  • 30945
    Offline posted

    Hello,

     

    I have created a sample application that demonstrates how you can set different tool tip for each cell in a given field. The sample application follows an approach in which a CellValuePresenter style is used and the ToolTip property of the CellValuePresenter is bound to the CellValuePresenter itself and by using a converter class, the tool tip is different for each field.

     

    If you need any further assistance please do not hesitate to ask.

    Sincerely,

    Krasimir

    Developer Support Engineer

    Infragistics

    www.infragistics.com/support

    CellValuePresenterToolTip.zip