Hi,
I am trying to set tooltip on each cell of xamDataGrid.And this tooltip is unique for each cell. I have achieved this using tooltip eventsetter. My requirement is that, I have to preassign/preset unique tooltip on each cell while xamDataGrid is initialized with data but not with eventsetter.
Any solution to this problem?
Thank you,
Barakath.
Hello Carl,
Thank you for your post. I have been looking into it and I created a sample project for you with the functionality you want. Basically I created a Style for the CellValyePresenter of one of the Fields and set the Tooltip to be an Image bound to one of the other Cells’ Value, which is a Uri. I also set the Visibility of the Field with the Uri to Collapsed. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.
Is it possible to use an image as a tool tip? Can I inlcude an image path as a column in the data source, and then bind the column to show the image as the tool tip?
Hello,
It seems like I am missing something about your scenario, so could you please send me an isolated sample project, with the data you use and the layout of the Fields and be more specific whether you want to put different tooltip for every Cell or you want to put a tooltip on the header. Also could you please tell me what do you want to be the content of this tooltip and where should it come from.
Hi Stefan,
How can I put a tool tip on the following field?
<
=PropertyChanged}">
>
}">
="{}{number:0-100000}" />
="True" />
="DisplayErrorMessage"/>
<!--<Style TargetType="{x:Type igDP:CellValuePresenter}">
<Setter Property="ToolTip" Value="{Binding RelativeSource={RelativeSource Self}, Path=apcToolTip}"></Setter>
</Style>-->
Hello Barakath,
Thank you for your feedback. I am glad that you resolved your issue and I believe that other community members may benefit from this as well.
Thanks again.