473,406 Members | 2,633 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

show tooltip in gridview

Hi,

I would like to show a tooltip when the user move the mouse over the
first column of my gridview.

The tooltip should be bound to a field of the gridview's datasource
that correspond to the row being hovered.

How can I do that ?

May 23 '06 #1
3 6488
Either you put a link with the title attribute set, or you should
devise a DHTML method (that includes javascript).

Regards,
Tasos

May 23 '06 #2
You can use a label control
and in the label control set ToolTip='blablabls'
Patrick

"graphicsxp" <sa*************@googlemail.com> wrote in message
news:11********************@i40g2000cwc.googlegrou ps.com...
Hi,

I would like to show a tooltip when the user move the mouse over the
first column of my gridview.

The tooltip should be bound to a field of the gridview's datasource
that correspond to the row being hovered.

How can I do that ?

May 24 '06 #3
I've found a better way actually :

Protected Sub grdCuttings_RowDataBound(ByVal sender As Object, ByVal e
As System.Web.UI.WebControls.GridViewRowEventArgs) Handles
grdCuttings.RowDataBound
Dim item As GridViewRow = e.Row

If (e.Row.RowType = DataControlRowType.DataRow) Then
item.Cells(0).Attributes.Add("title",
Me.grdCuttings.DataKeys(item.RowIndex).Item("Headl ine").ToString())
End If
End Sub

Thanks

May 24 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: RJN | last post by:
Hi The texts in the dropdown are too long and the width is not sufficient to show the entire text. Increasing the width is not an option. Is there a way to show the selected item text as a...
0
by: Lucian Wischik | last post by:
I'm using ToolTip.Show(x,y,..) to show my balloon-style tooltip at a specified coordinate. Most of the time it works fine and the "tip" of the balloon points exactly to my specified (x,y)...
2
by: Paul E Collins | last post by:
How can I show a tooltip programmatically? I want to make it appear over a particular control at the specific time I choose, and not rely on the user's mouse movements. I don't mind using some...
4
by: Pieter | last post by:
Hi, Using VB.NET 2.0, Windows Forms. I want the ToolTip to be shown on every TextBox, ComboBox and DataGridView continuously, and show the contence of these controls. Is there a way to add the...
3
by: =?Utf-8?B?UmFq?= | last post by:
I have a very unique requirement, I have to add a tooltip in a grid view control, the tooltip should be similar to this link: http://web-graphics.com/mtarchive/BubbleTooltips.html ...(hover at...
1
by: Laurahn | last post by:
Hi: How can i display tooltip message on a dropdownlist template control inside a GridView Footer. I found this code working well, but it dosen't work inside a gridview: </head> <body>...
0
by: jobs | last post by:
My image buttons show up fine, but that last Button (ResetUser) does not - only the header. I've attempted to put it first, but it did not help. My codebehind is doing nothing fancy. The button...
1
by: jobs | last post by:
I've been staring at this and can't explain why it's not working. The grid shows up fine, except the last column, Reset User button does not render??? I checked the codebehind and I am not...
0
by: =?Utf-8?B?R3V5IENvaGVu?= | last post by:
Hi all I use vb 2005 and gridview control I want to use a tooltip control When the user clicks a row, set the tooltip to "row i" where i is the row number. I did (in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.