Home Forums WPF controls Xceed DataGrid for WPF ToolTip For A Column

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #25021 |

    Hi,
    I am in need of displaying a tooltip for the entire datacells of a particular column.Whetheri it is possible?
    Please provide me a solution.

    Regards..

    Imported from legacy forums. Posted by Britto (had 383 views)

    Xceed Support
    Member
    Post count: 5658

    If you want to display a tooltip only on the cells of a particular column, here is how I suggest working:

    <code>
    <Style TargetType=”{x:Type xcdg:DataCell}”>
    <Style.Triggers>
    <DataTrigger Binding=”{Binding RelativeSource={RelativeSource Self}, Path=ParentColumn.FieldName}”
    Value=”MyColumnFieldName”>
    <Setter Property=”Tooltip” Value=”bla!” />
    </DataTrigger>
    </Style.Triggers>
    </Style>
    </code>

    Imported from legacy forums. Posted by Marcus [Xceed] (had 232 views)

    User (Old forums)
    Member
    Post count: 23064

    Hi,
    Thank you. It works good.
    Regards

    Imported from legacy forums. Posted by Britto (had 3199 views)

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.