ASP.NET - add tooltips to GridView

Posted on 2009-04-23
Last Modified: 2012-05-06
I've got a situation where I'm binding a DataTable to a GridView.  In the resulting table are a bunch of scores and for each score in the table I need there to be a tooltip displayed on hover that shows that date of that score.

What I tried to do was to edit the DataTable that I was binding to the GridView control so that each field with score text was changed to have the text surrounded with a span tag which had a title of the date.  The result of this effort was that the entire span tag was printed out in the table cell.

Is there anyway to configure the GridView so that it doesn't encode the characters < and > to &lt; and &gt; when the control renders?

Or is there any other way to get at what I'm trying to do?
Question by:josephdaviskcrm
    LVL 9

    Accepted Solution

    LVL 7

    Assisted Solution

    Refer below example (to display a single information)
    In your HeaderText, do this:

    HeaderText="<span title='Document Size'>Size</span>"

    Here's it is in context:

    <asp:BoundColumn DataField="DocS" HeaderText="<span title='Document Size'>Size</span>" >
    Look at the demo here :
    If you wna to do same as demo refer link :
    Also by web services, this is possible Refer

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
    Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    794 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now