Home Forums WPF controls Xceed DataGrid for WPF tooltip for wpf Xceed datagrid columns

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

    Hello,
    I want to give cell content as tooltip to that cell itself in the wpf xceed datagrid columns, how can i do that, help me out plz AEAP

    Imported from legacy forums. Posted by Suresh (had 6547 views)

    Xceed Support
    Member
    Post count: 5658

    I`m not sure I totally understand your question but:

    You can create a style for the DataCell class and in the style, be sure to affect the Tooltip property of the DataCell.

    Quick Example:

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

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

    User (Old forums)
    Member
    Post count: 23064

    Thank you very much its working perfectly

    Imported from legacy forums. Posted by Suresh (had 3249 views)

    User (Old forums)
    Member
    Post count: 23064

    How should I give if I want to bind a column to the tool tip?

     eg) My datasource has empid, name etc and I show only the naem in the grid but I want the tooltip as the emp id for the particular name.

     Please guide me implementation both in design time and run time

    Imported from legacy forums. Posted by Jebarson (had 799 views)

    User (Old forums)
    Member
    Post count: 23064

    I would like to join Jerome. Even am facing the issue and any help on this would be great.

    As and when the user hovers a column in my grid i should show the content of that particular column as the tooltip.

    I tried the below piece but it isn’t working.

    <xcdg:Column Width=”110″ Title=”Age” ToolTipService.IsEnabled=”True”

    ToolTipService.ToolTip=”{Binding Path=AgeFormatted}”

    FieldName=”AgeFormatted”

    DisplayMemberBinding=”{Binding Path=AgeFormatted, Mode=OneWay}”/>

    Imported from legacy forums. Posted by Corleone (had 523 views)

    User (Old forums)
    Member
    Post count: 23064

    I forgot to mention one thing :

    My grid has 14 columns and in that i want the tooltip only for a clumn

    Imported from legacy forums. Posted by Corleone (had 4066 views)

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