ASP.NET - add tooltips to GridView

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?
josephdaviskcrmAsked:
Who is Participating?
 
tetorvikCommented:
0
 
meispiscesCommented:
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>" > 
OR
Look at the demo here : http://www.mosesofegypt.net/samples00/GridViewJquerytooltip/
If you wna to do same as demo refer link :http://mosesofegypt.net/post/2008/03/Displaying-Row-Details-Tooltip-on-GridView-using-JQuery.aspx
Also by web services, this is possible Refer http://www.dotnetbips.com/articles/36f06160-5221-4d27-a177-320927f4b962.aspx
 
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.