Home Forums WPF controls Xceed DataGrid for WPF Tooltip for Datagrid Column Header

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

    Hi,

    I am having a few datagrids with multiple columns.

    Now, i want to programatically associate tooltip with every column header for my datagrids (Tooltip will be same as Displayname for each column header).

    Is there any property by means of which i can set Tooltip = ColumnName.

    I was looking at ColumnManagerCell class but I am not sure if i can use it. (http://forums.xceed.com/Forums/ShowPost.aspx?PostID=8051).

    If not above 2 means, how can i actually do it.

    Please help in this regard.

    Thanks and Regards,
    sl

    Imported from legacy forums. Posted by sl (had 2568 views)

    Xceed Support
    Member
    Post count: 5658

    You just need the DataCell to ColumnManagerCell from the <a href=”http://forums.xceed.com/Forums/ShowPost.aspx?PostID=6829″>normal procedure</a>:

    <code>
    <Style TargetType=”{x:Type xcdg:ColumnManagerCell}”>
    <Setter Property=”ToolTip”
    Value=”{Binding RelativeSource={RelativeSource Self}, Path=Content}”/>
    </Style>
    </code>

    Imported from legacy forums. Posted by CharlesB (had 2868 views)

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