We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Tooltips in cells

Thread ID:





94066 Apr 20,2010 04:47 PM UTC Dec 13,2013 02:44 PM UTC Silverlight 5
Tags: GridControl
Kirk Pinneo
Asked On April 20, 2010 04:47 PM UTC

In silverlight 4, I tried to add a tooltip to a cell using your documented procedures. I added the template in the xaml and then add the following code to the loaded event:

Private Sub UserControl_Loaded(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles MyBase.Loaded
GridControl1.Model.RowCount = 3
GridControl1.Model.ColumnCount = 3
Dim style = GridControl1.Model(2, 2)
style.CellValue = "test"
style.ShowTooltip = True
style.TooltipTemplateKey = "celltipTemplate"
End Sub

The tooltip does not show, can you explain?

Thanks Kirk

Mohamed Suhaib Fahad A. [Syncfusion]
Replied On April 22, 2010 09:32 AM UTC

Hi Kirk,

You would also have to set the attached property in the grid as, GridTooltipService.ShowTooltips="True", this service would then show the tooltips based on your underlying CellValue.

Please let me know if this helps.


Kirk Pinneo
Replied On April 23, 2010 04:04 AM UTC

Thanks that works, is the CellValue the only property that can be displayed as a tooltip? I tried binding to other properties within the datacontext for the cell and it did not work.

Mohamed Suhaib Fahad A. [Syncfusion]
Replied On April 23, 2010 09:52 AM UTC

Hi Kirk,

You have the whole GridStyleInfo set to the DataContext of your custom template. The below is the template we use internally to show the tooltip by default,

Background="{StaticResource LightBrush}"
BorderBrush="{StaticResource SolidBorderBrush}"

Let us know if that helps.


Peter Magrath
Replied On February 8, 2011 04:09 AM UTC

Hi Mohamed,

Can you please post some more information on how the template in the above post can be used. I am trying to display a custom tooltip in a Silverlight Syncfusion grid and want to keep this seperate from the cellValue.


Jayapradha S [Syncfusion]
Replied On December 13, 2013 02:44 PM UTC

Hi Peter,


Apologize for the delay,


You can achieve your requirement by using  GridStyleInfo.Tooltip instead of GridStyleInfo.CellValue  to display a tooltip like as in the below code snippet,


Code Snippet:

<DataTemplate x:Key="templateTooltip">

            <Border Background="LightGreen"




                <StackPanel Margin="5"



                    <Image Width="30"



                           Source="Images\phone.png" />

                    <TextBlock VerticalAlignment="Center" Text="{Binding Tooltip}" />






please refer the attached sample,


Please let us know if you have any queries,






This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon